Skip to content

Instantly share code, notes, and snippets.

@bnguyensn
Last active September 12, 2019 20:29
Show Gist options
  • Save bnguyensn/ef30011f05e3b8b1f975657a9a843a5b to your computer and use it in GitHub Desktop.
Save bnguyensn/ef30011f05e3b8b1f975657a9a843a5b to your computer and use it in GitHub Desktop.
.bashrc
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