Last active
May 27, 2024 09:34
-
-
Save gokulkrishh/b5741cdf8ff784d9b301 to your computer and use it in GitHub Desktop.
zsh alias
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##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