Skip to content

Instantly share code, notes, and snippets.

@gokulkrishh
Last active July 19, 2018 11:54
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save gokulkrishh/b5741cdf8ff784d9b301 to your computer and use it in GitHub Desktop.
Save gokulkrishh/b5741cdf8ff784d9b301 to your computer and use it in GitHub Desktop.
zsh alias
##shortcuts
alias s='git status'
# Easy Navigation
alias ..="cd .."
alias ...="cd ../.."
alias p="cd ~/practices"
alias w="cd ~/workspace"
# Tools
alias st="open -a 'Sublime Text'"
alias at="open -a 'Atom'"
# Chrome
alias kt="kill-tabs"
# Start local server
alias server='python -m SimpleHTTPServer'
# List all files colorized in long format
alias l='ls -l ${colorflag}'
# Utilities
alias f="open -a Finder"
alias 'o .' ="open ."
alias ip="ifconfig -a | grep -o 'inet6\? \(addr:\)\?\s\?\(\(\([0-9]\+\.\)\{3\}[0-9]\+\)\|[a-fA-F0-9:]\+\)' | awk '{ sub(/inet6? (addr:)? ?/, \"\"); print }'"
alias cleanup="find . -type f -name '*.DS_Store' -ls -delete"
alias rm="=rm -rf"
alias idm="wine ~/.wine/drive_c/Program\ Files/Internet\ Download\ Manager/IDMan.exe"
# Reload the shell (i.e. invoke as a login shell)
alias reload="exec $SHELL -l"
# Show/hide hidden files in Finder
alias show="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
alias hide="defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder"
# NODE & BOWER
alias npmi="sudo npm install"
alias npmg="sudo npm install -g"
alias npmu="sudo npm update"
alias bi="bower install"
##end of shortcuts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment