commit 65699d8a23dc382a9616f70ffa0627b1c4ab3c3b
parent fc7aa6f0e3ed87971bba96bf91c9825e3ce324ce
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date: Sat, 1 Jan 2022 21:56:22 +0100
Edit "up" and "gv" zsh aliases
Diffstat:
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/.config/zsh/aliases b/.config/zsh/aliases
@@ -29,8 +29,8 @@ alias ......="cd ../../../../.."
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 up="yay -Syu && yes | sudo pacman -Scc; pkill -RTMIN+4 dwmblocks"
alias autoremove="sudo pacman -Qtdq | sudo pacman -Rns -; yes | sudo pacman -Scc"
alias ca="cal -m -3"
@@ -51,6 +51,16 @@ alias ds="cd $HOME/.local/src && ls"
alias dvw="cd $HOME/Documents/wiki && ls"
alias dw="cd $HOME/Downloads && ls"
+# update system
+up() {
+ if ps aux | grep -q '[c]heckupdates'; then
+ echo "checkupdates in progress, exiting..."
+ else
+ yay -Syu && yes | sudo pacman -Scc
+ pkill -RTMIN+4 dwmblocks
+ fi
+}
+
# dotfiles' repository metafiles
c-clean() {
rm $HOME/README.md $HOME/COPYING