diff --git a/zshrc b/zshrc index 289b7a9..b348ad6 100644 --- a/zshrc +++ b/zshrc @@ -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"