Advertisement
theoden8

Untitled

Jul 27th, 2015
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.46 KB | None | 0 0
  1. +++ [[ prompt_command != \p\r\o\m\p\t\_\c\o\m\m\a\n\d ]]
  2. ++ prompt_command
  3. ++ PS1='\[\]\u \[\]at \[\]\h \[\]in \[\]\w\[\]$([[ -n $(git branch 2> /dev/null) ]] && echo " on ")\[\]$(parse_git_branch)\[\]\n$ \[\]'
  4. +++ git branch
  5. ++ [[ -n '' ]]
  6. ++ parse_git_branch
  7. ++ git branch --no-color
  8. +++ parse_git_dirty
  9. ++++ git status
  10. ++++ tail -n1
  11. ++++ cut -c 1-17
  12. +++ [[ '' != \n\o\t\h\i\n\g\ \t\o\ \c\o\m\m\i\t ]]
  13. +++ echo '*'
  14. ++ sed -e '/^[^*]/d' -e 's/* \(.*\)/\1*/'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement