Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
My .bash_profile file
export PATH=/usr/local/bin:$PATH
# promt colors
export PS1="\[\033[0;32m\]\w \[\033[0;97m\]\$\[\033[0m\] "
# ls alias for color-mode
alias ls='ls -lhaG'
# cd up
alias ..='cd ..'
# get ip
alias ip='ifconfig | grep "inet " | grep -v 127.0.0.1 | cut -d \ -f 2'
# more details
alias ip2="ifconfig -a | perl -nle'/(\d+\.\d+\.\d+\.\d+)/ && print $1'"
# refresh shell
alias reload='source ~/.bash_profile'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.