Autostart zsh

This commit is contained in:
Oshgnacknak 2025-09-10 17:30:15 +02:00
parent 7c47af8396
commit 97e0fe4bc1
Signed by: Oshgnacknak
GPG key ID: 8CB7375654585956

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"