Last active
April 21, 2019 08:55
-
-
Save harishannam/84f7ca6af321210d41d55b847bd770f3 to your computer and use it in GitHub Desktop.
Super Powered Bash Profile for a faster control π
This file contains 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
### Color LS | |
colorflag="-G" | |
alias ls="command ls ${colorflag}" | |
alias l="ls -lF ${colorflag}" # all files, in long format | |
alias la="ls -laF ${colorflag}" # all files inc dotfiles, in long format | |
alias lsd='ls -lF ${colorflag} | grep "^d"' # only directories | |
### Quicker navigation | |
alias ..="cd .." | |
alias ..2="cd ../.." | |
alias ..3="cd ../../.." | |
alias ..4="cd ../../../.." | |
### Git Shortcuts | |
alias gs='git status' | |
alias ga='git add .' | |
alias gc='git commit -m' # requires you to type a commit message | |
alias gp='git push' | |
alias gpo='git push origin' | |
alias grm='git rm $(git ls-files --deleted)' | |
alias gr='git remote -vv' | |
alias gb='git branch -vv' | |
alias gl='git log' | |
alias gl10='git log --oneline -10' | |
### Node JS | |
alias npminstall="npm install && osascript -e 'display notification \"Is now complete\" with title \"NPM INSTALL\"'" | |
### Mac | |
### Toggle wifi easily from terimal. | |
alias wifioff='networksetup -setairportpower en0 off' | |
alias wifion='networksetup -setairportpower en0 on' | |
### Application Shortcuts | |
alias as="open -a /Applications/Android\ Studio.app" | |
alias vsc="open -a /Applications/Visual\ Studio\ Code.app" | |
alias chrome="open -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome" | |
### Web Shortcuts | |
alias jsonlint="open https://jsonlint.com" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment