From 920c2e9d91d8e8fbd8b9e9ff2e7498edd50b702a Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 15 Jan 2020 02:26:59 +0000 Subject: [PATCH] Update zsh aliases --- tag-zsh/zsh/configs/aliases.zsh | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/tag-zsh/zsh/configs/aliases.zsh b/tag-zsh/zsh/configs/aliases.zsh index e2d22af..6c3c22c 100644 --- a/tag-zsh/zsh/configs/aliases.zsh +++ b/tag-zsh/zsh/configs/aliases.zsh @@ -1,33 +1,22 @@ alias l="ls -lah" -# Fast open +# Open the current directory in Finder. alias o="open ." -alias p="phpunit" -alias pf="phpunit --filter " -alias pstorm="phpstorm" -alias st="subl" -alias stt="subl ." - -alias y=yarn -alias ya='yarn add' -alias yd="yarn dev" -alias yp="yarn prod" -alias ys="yarn serve" -alias yw="yarn watch" - alias hosts="sudo vim /etc/hosts" alias sshconfig='vim ~/.ssh/config' -alias zshconfig='vim ~/.zshrc' -# Pretty print the path +# Pretty print the path. alias path='echo $PATH | tr -s ":" "\n"' -# PhpStorm +# Open the current directory in PhpStorm. alias pstorm='open -a /Applications/PhpStorm.app "`pwd`"' -# Sublime Text +# Open the current directory in Sublime Text. alias sublime='open -a /Applications/Sublime\ Text.app "`pwd`"' +# Allow for pasting lines of code that start with a dollar sign. +alias \$='' + # Include custom aliases [[ -f ~/.aliases.local ]] && source ~/.aliases.local