From 276affe557e2df1ff2089540ff63d38051d79ed8 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sat, 23 Sep 2023 00:34:31 +0200 Subject: Update shell --- .config/shell/aliasrc | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) (limited to '.config/shell/aliasrc') diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index a2d2373..718a740 100755 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -8,7 +8,7 @@ # sudo not required for some system commands. for x in mount unmount sv pacman updatedb su reboot; do - alias $x="doas $x" + alias "$x=doas $x" done # Verbosity and settings that you pretty much just always are going to want. @@ -34,14 +34,24 @@ alias \ e="$EDITOR" \ v="$EDITOR" \ p="sudo pacman" \ - dots="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" \ - npm="fnm" \ - z="zathura" \ - mbsync="mbsync -c $MBSYNCRC" \ - monerod="monerod --data-dir "$XDG_DATA_HOME"/bitmonero" \ - wget="wget --hsts-file=$XDG_DATA_HOME/wget-hsts" \ - hss="hugo server --noHTTPCache" \ - tmux="tmux -u" + dots="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" \ + npm="fnm" \ + z="zathura" \ + mbsync="mbsync -c $MBSYNCRC" \ + monerod="monerod --data-dir ""$XDG_DATA_HOME/bitmonero" \ + wget="wget --hsts-file=$XDG_DATA_HOME/wget-hsts" \ + hss="hugo server --noHTTPCache" \ + tmux="tmux -u" + +# git +alias \ + gw="git worktree" \ + gc="git commit" \ + ga="git add" \ + gm="git merge" \ + gco="git checkout" \ + gl="git log" \ + gb="git branch -a" # Pushing to multiple git repositories alias gua="git remote | xargs -L1 git push --all" @@ -49,6 +59,3 @@ alias dua="dots remote | xargs -L1 git --git-dir=$HOME/dotfiles/ --work-tree=$HO # Doas smooth transition alias sudo="doas" - -# Haskell formatter -alias fourmolu="$HOME/.local/share/cabal/bin/fourmolu" -- cgit v1.2.3-70-g09d2