BASH - How do I get a colored bash?
Open ~/.bashrc in an editor
Copy this and add it at the end of .bashrc file:
PS1='\[\033[1;36m\]\u\[\033[1;31m\]@\[\033[1;32m\]\h:\[\033[1;35m\]\w\[\033[1;31m\]\$\[\033[0m\] '
Save the file and restart bashrc:
$ source ~/.bashrc
$ PS1='\[\033[1;36m\]\u\[\033[1;31m\]\$\[\033[0m\] '
Open ~/.bashrc in an editor
Copy this and add it at the end of .bashrc file:
PS1='\[\033[1;36m\]\u\[\033[1;31m\]@\[\033[1;32m\]\h:\[\033[1;35m\]\w\[\033[1;31m\]\$\[\033[0m\] '
Save the file and restart bashrc:
$ source ~/.bashrc
$ PS1='\[\033[1;36m\]\u\[\033[1;31m\]\$\[\033[0m\] '
Komentar
Posting Komentar