add navi plugin

This commit is contained in:
Ingolf Wagner 2020-03-15 16:04:51 +08:00
parent 89b0690167
commit f5cfbeec86
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 1 additions and 3 deletions

View file

@ -105,9 +105,6 @@ in {
# configure navi # configure navi
environment.variables.NAVI_PATH = "$HOME/.cheats"; environment.variables.NAVI_PATH = "$HOME/.cheats";
programs.zsh.loginShellInit = "source ${pkgs.navi}/shell/navi.plugins.zsh";
programs.bash.loginShellInit = "source ${pkgs.navi}/shell/navi.plugins.bash";
programs.fish.loginShellInit = "source ${pkgs.navi}/shell/navi.plugins.fish";
} }

View file

@ -74,6 +74,7 @@ in {
home.file.".zshrc".text = '' home.file.".zshrc".text = ''
# a fix for https://github.com/NixOS/nixpkgs/issues/27587 # a fix for https://github.com/NixOS/nixpkgs/issues/27587
source ${pkgs.navi}/share/navi/shell/navi.plugin.zsh
autoload -U compinit && compinit autoload -U compinit && compinit
''; '';