Skip to content

Instantly share code, notes, and snippets.

@lukyth
Last active March 6, 2016 13:54
Show Gist options
  • Save lukyth/7b8bf25f567b0a91d55c to your computer and use it in GitHub Desktop.
Save lukyth/7b8bf25f567b0a91d55c to your computer and use it in GitHub Desktop.
alias zshconfig="s ~/.zshrc"
alias ohmyzsh="s ~/.oh-my-zsh"
alias c=cd
alias nv="latest-version"
alias nh="npm docs"
alias nis="npm install --save"
alias nid="npm install --save-dev"
alias ags="ag --ignore-case --literal"
alias nl="npm link --force"
alias g=git
alias nig="npm install -g"
alias ni="npm install"
s () {
if [ $# -eq 0 ]
then
/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl .
else
/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl "$@"
fi
}
a () {
if [ $# -eq 0 ]
then
atom-beta .
else
atom-beta "$@"
fi
}
clonecd () {
hub clone --recursive $1 && cd $(basename ${1%.git})
}
alias gcl=clonecd
alias zshrc="source ~/.zshrc"
alias chr="open -a Google\ Chrome\ Canary"
alias ht="cd /Applications/MAMP/htdocs"
alias git=hub
alias dl="cd /Users/Lukyth/Downloads"
alias dt="cd /Users/Lukyth/Desktop"
phps () {
php -S localhost:$1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment