From 34d02cfcf1d2fcab712185c36ed9f2a5550ca48a Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Tue, 30 Jul 2024 20:39:25 +0200 Subject: [PATCH] chore(nix): move specific aliases into individual configurations --- nix/home/fish/default.nix | 3 +++ nix/home/shared/shared-aliases.nix | 4 ---- nix/home/zsh/zshrc.sh | 3 +++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/nix/home/fish/default.nix b/nix/home/fish/default.nix index 060dcbf..7f3e862 100644 --- a/nix/home/fish/default.nix +++ b/nix/home/fish/default.nix @@ -43,6 +43,9 @@ in # Set environment variables set -gx TERM wezterm + + # Aliases + alias reload 'exec fish' ''; shellAliases = sharedAliases.shellAliases; diff --git a/nix/home/shared/shared-aliases.nix b/nix/home/shared/shared-aliases.nix index f85c8c7..59a2b9f 100644 --- a/nix/home/shared/shared-aliases.nix +++ b/nix/home/shared/shared-aliases.nix @@ -5,10 +5,6 @@ let in { shellAliases = mkAliases { - # ZSH - zshconfig = "vim $HOME/.zshrc"; - reload = "source $HOME/.zshrc"; - # Folders/Lists "..." = "cd ../.."; ".." = "cd .."; diff --git a/nix/home/zsh/zshrc.sh b/nix/home/zsh/zshrc.sh index a9d6129..4034dd8 100644 --- a/nix/home/zsh/zshrc.sh +++ b/nix/home/zsh/zshrc.sh @@ -3,6 +3,9 @@ DISABLE_AUTO_TITLE="true" # Disable auto-setting terminal title COMPLETION_WAITING_DOTS="true" ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=7,bg=bold,underline" +# Aliases +alias reload="source $HOME/.zshrc" + # Bindkey bindkey -v bindkey -M viins '^r' fzf-history-widget # (r)everse history search