nixos/shell: make sure zoxide is evaled latest
This commit is contained in:
parent
a1208a79b2
commit
4aa8236957
1 changed files with 13 additions and 9 deletions
|
@ -39,15 +39,19 @@ in
|
||||||
HISTCONTROL=ignoreboth
|
HISTCONTROL=ignoreboth
|
||||||
'';
|
'';
|
||||||
|
|
||||||
programs.bash.interactiveShellInit = ''
|
programs.bash.interactiveShellInit = lib.mkMerge [
|
||||||
HISTCONTROL=ignoreboth
|
''
|
||||||
if test -n "$KITTY_INSTALLATION_DIR"; then
|
HISTCONTROL=ignoreboth
|
||||||
export KITTY_SHELL_INTEGRATION="enabled,no-sudo"
|
if test -n "$KITTY_INSTALLATION_DIR"; then
|
||||||
source "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"
|
export KITTY_SHELL_INTEGRATION="enabled,no-sudo"
|
||||||
fi
|
source "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"
|
||||||
eval "''$(zoxide init bash)"
|
fi
|
||||||
alias bye=exit
|
alias bye=exit
|
||||||
'';
|
''
|
||||||
|
(lib.mkAfter ''
|
||||||
|
eval "''$(${lib.getExe pkgs.zoxide} init bash)"
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
|
||||||
environment.etc."xdg/kitty/kitty.conf".text = ''
|
environment.etc."xdg/kitty/kitty.conf".text = ''
|
||||||
font_family MesloLGS Nerd Font
|
font_family MesloLGS Nerd Font
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue