mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
navi: don't install widget on limited terminals
Otherwise we get the following warning for terminals with limited capabilities: bash: bind: warning: line editing not enabled
This commit is contained in:
parent
0ebed30a10
commit
543484d298
1 changed files with 6 additions and 2 deletions
|
@ -64,11 +64,15 @@ in {
|
|||
home.packages = [ cfg.package ];
|
||||
|
||||
programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
|
||||
eval "$(${cfg.package}/bin/navi widget bash)"
|
||||
if [[ :$SHELLOPTS: =~ :(vi|emacs): ]]; then
|
||||
eval "$(${cfg.package}/bin/navi widget bash)"
|
||||
fi
|
||||
'';
|
||||
|
||||
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
|
||||
eval "$(${cfg.package}/bin/navi widget zsh)"
|
||||
if [[ $options[zle] = on ]]; then
|
||||
eval "$(${cfg.package}/bin/navi widget zsh)"
|
||||
fi
|
||||
'';
|
||||
|
||||
programs.fish.shellInit = mkIf cfg.enableFishIntegration ''
|
||||
|
|
Loading…
Reference in a new issue