Last active
August 29, 2015 14:13
-
-
Save dominikwilkowski/2d82e50dd10ab8bbb5a7 to your computer and use it in GitHub Desktop.
My .bash_profile file
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 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