Last active
September 12, 2019 20:29
-
-
Save bnguyensn/ef30011f05e3b8b1f975657a9a843a5b to your computer and use it in GitHub Desktop.
.bashrc
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
| export NVM_DIR="$HOME/.nvm" | |
| [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
| alias wanip='dig +short myip.opendns.com @resolver1.opendns.com' | |
| # ========== ALIASES ========== # | |
| # ---------- System aliases ---------- # | |
| alias home="cd ~" | |
| alias root="cd /" | |
| # ---------- git aliases ---------- # | |
| # Add all & commit using a text editor | |
| alias git-ca="git add . && git commit" | |
| # ========== OTHERS ========== # | |
| # Change custom prompt | |
| # \h:\W \u\$ # Default | |
| export PS1="\[\e[36m\]\w \$ \[\e[m\]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment