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
|
@ -64,11 +64,15 @@ in {
|
||||||
home.packages = [ cfg.package ];
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
|
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 ''
|
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 ''
|
programs.fish.shellInit = mkIf cfg.enableFishIntegration ''
|
||||||
|
|
Loading…
Reference in a new issue