Skip to content

Instantly share code, notes, and snippets.

@dominikwilkowski
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dominikwilkowski/2d82e50dd10ab8bbb5a7 to your computer and use it in GitHub Desktop.
Save dominikwilkowski/2d82e50dd10ab8bbb5a7 to your computer and use it in GitHub Desktop.
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