Autostart zsh

This commit is contained in:
Oshgnacknak 2025-09-10 17:30:15 +02:00
parent 7c47af8396
commit 2750db6238
Signed by: Oshgnacknak
GPG key ID: 8CB7375654585956
2 changed files with 10 additions and 2 deletions

7
_zshrc
View file

@ -30,8 +30,11 @@ function zle-keymap-select {
}
zle -N zle-keymap-select
[ -f "$HOME/./config/bashrc" ] && emulate sh -c "source $HOME/./config/bashrc"
[ -f "$HOME/.bashrc" ] && emulate sh -c "source $HOME/.bashrc"
if [ -f "$HOME/.config/bashrc" ]; then
emulate sh -c "source $HOME/.config/bashrc"
else if [ -f "$HOME/.bashrc" ];
emulate sh -c "source $HOME/.bashrc"
fi
[ -f "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ] && source "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
[ -f "/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" ] && source "/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh"

View file

@ -78,6 +78,11 @@
};
};
programs.bash.enable = true;
programs.bash.initExtra = ''
exec ${pkgs.zsh}/bin/zsh
'';
programs.fzf = {
enable = true;
enableZshIntegration = true;