From adc80419daafa1acd5a5f298cefc9a52d3112526 Mon Sep 17 00:00:00 2001 From: surtur Date: Thu, 10 Aug 2023 22:28:44 +0200 Subject: [PATCH] aliases.zsh: bind aliases to dotfiles home --- .zsh/aliases.zsh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.zsh/aliases.zsh b/.zsh/aliases.zsh index 1162f17..cdfff9e 100644 --- a/.zsh/aliases.zsh +++ b/.zsh/aliases.zsh @@ -1,3 +1,5 @@ + local dfHome="~/utils/dotfiles" + alias ls='exa -al --group --group-directories-first' alias grubup='sudo grub2-mkconfig -o /boot/grub2/grub.cfg' alias am='sudo -i' @@ -15,8 +17,8 @@ #alias reth='sudo ethtool -r enp0s25' # ; ip link set enp0s25 down; ip link set enp0s25 up ' #alias rwlan='ip link set wlp3s0 down; ip link set wlp3s0 up' alias wget='wget -c' # allows to restore progress after interruption - alias vimrc='vim ~/.vimrc' - alias zshconfig="vim ~/.zshrc" + alias vimrc="vim $dfHome/.vim/vimrc" + alias zshconfig="vim $dfHome/.zshrc" alias zshist="vim ~/.zsh_history" alias alltheconfigs='alltheconfigs.sh' alias agentssh="ssh-add ~/.ssh/$kee" # add development key on demand @@ -44,7 +46,7 @@ fi } alias signal-desktop='signal-desktop --use-tray-icon --enable-features=UseOzonePlatform --ozone-platform=wayland' - alias dotfiles='cd ~/utils/dotfiles' + alias dotfiles="cd $dfHome" alias -g VV=' |& vim -' alias -g LL=' |& less' alias kubectl='kubectl'