Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +++ [[ prompt_command != \p\r\o\m\p\t\_\c\o\m\m\a\n\d ]]
- ++ prompt_command
- ++ PS1='\[\]\u \[\]at \[\]\h \[\]in \[\]\w\[\]$([[ -n $(git branch 2> /dev/null) ]] && echo " on ")\[\]$(parse_git_branch)\[\]\n$ \[\]'
- +++ git branch
- ++ [[ -n '' ]]
- ++ parse_git_branch
- ++ git branch --no-color
- +++ parse_git_dirty
- ++++ git status
- ++++ tail -n1
- ++++ cut -c 1-17
- +++ [[ '' != \n\o\t\h\i\n\g\ \t\o\ \c\o\m\m\i\t ]]
- +++ echo '*'
- ++ sed -e '/^[^*]/d' -e 's/* \(.*\)/\1*/'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement