use starship and zoxide

This commit is contained in:
Christoph Cullmann 2024-04-28 16:03:05 +02:00
parent 262fa3c12c
commit c373254503

View file

@ -489,6 +489,7 @@ in
# use ZSH per default with a proper config # use ZSH per default with a proper config
users.defaultUserShell = pkgs.zsh; users.defaultUserShell = pkgs.zsh;
programs.starship.enable = true;
programs.zsh = { programs.zsh = {
# zsh wanted # zsh wanted
enable = true; enable = true;
@ -496,16 +497,7 @@ in
# some env vars I want in all of my shells # some env vars I want in all of my shells
shellInit = '' shellInit = ''
export MOZ_ENABLE_WAYLAND=1 export MOZ_ENABLE_WAYLAND=1
export POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true
export XDG_DATA_DIRS=$XDG_DATA_DIRS:/usr/share:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share export XDG_DATA_DIRS=$XDG_DATA_DIRS:/usr/share:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share
'';
# great prompt
promptInit = ''
source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme
if [ -f ~/.p10k.zsh ]; then
source ~/.p10k.zsh;
fi
eval "$(zoxide init zsh)" eval "$(zoxide init zsh)"
''; '';
@ -521,10 +513,10 @@ in
optimize = "sudo nix --extra-experimental-features nix-command store optimise"; optimize = "sudo nix --extra-experimental-features nix-command store optimise";
# ssh around in the local network # ssh around in the local network
mac = "ssh mac.fritz.box";
macroot = "ssh root@mac.fritz.box";
mini = "ssh mini.fritz.box"; mini = "ssh mini.fritz.box";
miniroot = "ssh root@mini.fritz.box"; miniroot = "ssh root@mini.fritz.box";
neko = "ssh neko.fritz.box";
nekoroot = "ssh root@neko.fritz.box";
}; };
}; };