mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
atuin: 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
4f4165a8b9
commit
0232fe1b75
1 changed files with 7 additions and 3 deletions
|
@ -89,12 +89,16 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
|
programs.bash.initExtra = mkIf cfg.enableBashIntegration ''
|
||||||
source "${pkgs.bash-preexec}/share/bash/bash-preexec.sh"
|
if [[ :$SHELLOPTS: =~ :(vi|emacs): ]]; then
|
||||||
eval "$(${cfg.package}/bin/atuin init bash)"
|
source "${pkgs.bash-preexec}/share/bash/bash-preexec.sh"
|
||||||
|
eval "$(${cfg.package}/bin/atuin init bash)"
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
|
programs.zsh.initExtra = mkIf cfg.enableZshIntegration ''
|
||||||
eval "$(${cfg.package}/bin/atuin init zsh)"
|
if [[ $options[zle] = on ]]; then
|
||||||
|
eval "$(${cfg.package}/bin/atuin init zsh)"
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
programs.fish.interactiveShellInit = mkIf cfg.enableFishIntegration ''
|
programs.fish.interactiveShellInit = mkIf cfg.enableFishIntegration ''
|
||||||
|
|
Loading…
Reference in a new issue