From 2750db6238718ef5ed7d6d5537825f80f56be115 Mon Sep 17 00:00:00 2001 From: Oshgnacknak Date: Wed, 10 Sep 2025 17:30:15 +0200 Subject: [PATCH] Autostart zsh --- _zshrc | 7 +++++-- flake.nix | 5 +++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/_zshrc b/_zshrc index dda566f..6794be3 100755 --- a/_zshrc +++ b/_zshrc @@ -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" diff --git a/flake.nix b/flake.nix index 0e62506..e29bd13 100644 --- a/flake.nix +++ b/flake.nix @@ -78,6 +78,11 @@ }; }; + programs.bash.enable = true; + programs.bash.initExtra = '' + exec ${pkgs.zsh}/bin/zsh + ''; + programs.fzf = { enable = true; enableZshIntegration = true;