Difference between revisions of "Linux: Customize Shell Prompt"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) (Created page with "Show current prompt string1 echo $PS1 * \u --> Username * \h --> Hostname * \w --> Current working Directory * More info @man page bash To modify edit ~/.bashrc <nowiki...") |
Rafahsolis (talk | contribs) |
||
| Line 10: | Line 10: | ||
<nowiki>\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ | <nowiki>\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ | ||
export PS1</nowiki> | export PS1</nowiki> | ||
| + | |||
| + | http://ezprompt.net | ||
Revision as of 22:50, 1 April 2017
Show current prompt string1
echo $PS1
- \u --> Username
- \h --> Hostname
- \w --> Current working Directory
- More info @man page bash
To modify edit ~/.bashrc
\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$
export PS1