move to starship

This commit is contained in:
Cyryl Płotnicki 2020-07-04 10:21:15 +01:00
parent 8d3d91d3d0
commit 9137b5bf03
2 changed files with 51 additions and 34 deletions

View file

@ -17,5 +17,6 @@
docker-compose rustup
knockknock
python38Packages.pygments
canto-curses
];
}

View file

@ -16,21 +16,7 @@
enable = true;
plugins = [ "vi-mode" "git" "python" "history-substring-search" "tmux" ];
};
plugins = [
{
name = "spaceship";
file = "spaceship.zsh";
src = pkgs.fetchgit {
url = "https://github.com/denysdovhan/spaceship-prompt";
rev = "v3.11.1";
sha256 = "0habry3r6wfbd9xbhw10qfdar3h5chjffr5pib4bx7j4iqcl8lw8";
};
}];
initExtra = ''
SPACESHIP_TIME_SHOW=true
SPACESHIP_EXIT_CODE_SHOW=true
SPACESHIP_VI_MODE_SHOW=false
SPACESHIP_BATTERY_THRESHOLD=30
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=238'
setopt HIST_IGNORE_ALL_DUPS
'';
@ -69,4 +55,34 @@
enable = true;
enableZshIntegration = true;
};
home.file.".config/starship.toml".text =''
[aws]
disabled = true
[[battery.display]]
threshold = 10
style = "bold red"
[[battery.display]]
threshold = 30
style = "bold yellow"
[memory_usage]
disabled = false
[git_branch]
symbol = "git "
[hg_branch]
symbol = "hg "
[nix_shell]
symbol = "nix-shell "
'';
programs.starship = {
enable = true;
enableZshIntegration = true;
};
}