commit b1541ee1183a553175e339227c5d315537193adf
parent db2a8261ef30132661c40f65450d716d4c1b8602
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date: Tue, 4 Jan 2022 23:39:20 +0100
Fix cv alias to work when inside a Git repository
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.config/zsh/aliases b/.config/zsh/aliases
@@ -30,7 +30,7 @@ alias vw="cd $HOME/Documents/wiki && vim index.md"
alias bvw="firefox $HOME/Documents/wiki/build/html/index.html"
alias c="git --git-dir=$HOME/.local/share/dotfiles --work-tree=$HOME"
alias gv="nvim -c Git -c only"
-alias cv="GIT_DIR=$HOME/.local/share/dotfiles GIT_WORK_TREE=$HOME nvim -c Git -c only"
+alias cv="(cd $HOME; GIT_DIR=$HOME/.local/share/dotfiles GIT_WORK_TREE=$HOME nvim -c Git -c only)"
alias autoremove="sudo pacman -Qtdq | sudo pacman -Rns -; yes | sudo pacman -Scc"
alias ca="cal -m -3"