zshrc: improve alias

This commit is contained in:
Rob Watson 2021-10-08 15:39:13 +02:00
parent 252871065a
commit c3cb3a92a5
1 changed files with 1 additions and 1 deletions

2
zshrc
View File

@ -92,7 +92,7 @@ alias sysc="systemctl"
alias rgo="rg -g '*.go' -g '!vendor/'"
alias rgs="rg -g '*.go' -g '*.rb' -g '!vendor/' -g '!*_test.go' -g '!*_spec.rb'"
alias rgt="rg -g '*_test.go' -g '*_spec.rb' -g '!vendor/'"
rgw() { rg -g '!vendor/' "\b$@\b" }
rgw() { SEARCH_TERM=$1; shift; rg -g '!vendor/' "\b$SEARCH_TERM\b" $* }
alias tm="tmux attach"
alias tmd="tmux new -s default -c $HOME || tmux attach -t default"
alias tms="tmuxsess"