Last active
December 20, 2015 09:39
-
-
Save pbojinov/6109006 to your computer and use it in GitHub Desktop.
my osx .bash_profile
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
| #aliases | |
| alias ..="cd .." | |
| alias home="cd /Users/petar" | |
| alias profile="cd /Users/petar; subl .bash_profile" | |
| #internal ip | |
| alias ip="ifconfig" | |
| alias ip0="ipconfig getifaddr en0" #usually wifi | |
| #external ip | |
| alias xip="curl ifconfig.me" | |
| # alias for quick DNS cache flushing | |
| alias flush='sudo dscacheutil -flushcache' | |
| #folders | |
| alias web="cd /Users/petar/Development/GitHubDevelopment/Web-Development/" | |
| # remove login details | |
| # in home directory > touch .hushlogin | |
| # to remove it, > rm .hushlogin | |
| # command prompt text | |
| #export PS1="\[\e[32m\]\u @ \[\e[33m\]\w \[\e[0m\] \n\[\e[35;40m\]> \[\e[0m\]" | |
| export PS1="\[\e[32m\]\u @ \[\e[33m\]\w \[\e[0m\] \n\[\e[35;40m\]> \[\e[0m\]" | |
| export PS2='\[\e[35;40m\]> \[\e[0m\]' | |
| #title of command prompt | |
| export PROMPT_COMMAND='echo -ne "\033]0; ${PWD##*/}\007"' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment