Created
August 23, 2015 19:34
-
-
Save alastairparagas/b3e648f9030690fd2de1 to your computer and use it in GitHub Desktop.
Bash Profile for my Mac OSX
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
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/[\1]/' | |
| } | |
| # Source: kirsle.net/wizards/ps1.html | |
| export PS1="\[$(tput setaf 2)\][\W]\[$(tput setaf 1)\]\$(parse_git_branch) \[$(tput sgr0)\]" | |
| export NVM_DIR=~/.nvm | |
| source $(brew --prefix nvm)/nvm.sh | |
| . ./z.sh | |
| function title () | |
| { | |
| TITLE=$1; | |
| export PROMPT_COMMAND='echo -ne "\033]0;$TITLE\007"' | |
| } | |
| function cdd() { | |
| cd $1 | |
| ls -A | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment