Guest User

Untitled

a guest
Jan 17th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. if [ "$color_prompt" = yes ]; then
  2. #PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m]$ '
  3. PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[01;31m]$(parse_git_branch)[33[00m]$ '
  4. else
  5. #PS1='${debian_chroot:+($debian_chroot)}u@h:w$ '
  6. PS1='${debian_chroot:+($debian_chroot)}u@h:w$(parse_git_branch)$ '
  7. fi
  8.  
  9. #!/bin/bash
  10.  
  11. sed -i 's/${debian_chroot:+($debian_chroot)}[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m]$ /${debian_chroot:+($debian_chroot)}[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[01;31m]$(parse_git_branch)[33[00m]$ ' .bashrc
  12.  
  13. sed -i 's/${debian_chroot:+($debian_chroot)}u@h:w$ /${debian_chroot:+($debian_chroot)}u@h:w$(parse_git_branch)$ ' .bashrc
Add Comment
Please, Sign In to add comment