From 6070598d72dd2eb7bb68e1e70305054b0173acc9 Mon Sep 17 00:00:00 2001 From: Oshgnacknak Date: Sun, 7 Sep 2025 01:47:00 +0200 Subject: [PATCH] flake --- _zshrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/_zshrc b/_zshrc index 3534108..d210f2b 100755 --- a/_zshrc +++ b/_zshrc @@ -30,8 +30,11 @@ function zle-keymap-select { } zle -N zle-keymap-select -[ -f "$HOME/.bashrc" ] && emulate bash -c "source $HOME/.bashrc" -[ -f "$HOME/./config/bashrc" ] && emulate bash -c "source $HOME/./config/bashrc" +if [ -f "$HOME/./config/bashrc" ]; then + emulate sh -c "source $HOME/./config/bashrc" +else + [ -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"