New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
What is your $PS1?
So, what do you use for $PS1?
My fancy one is something like below -
PS1='\n${debian_chroot:+($debian_chroot)}[\033[01;34m]-[\033[01;32m](\u@`hostname --fqdn`)[\033[01;34m]-[\033[01;32m](\D{%T %z})\n[\033[01;34m]-[\033[01;32m]([\033[1;31m]\w[\033[1;32m])[\033[01;34m]-\$[\033[00m] '
Comments
Yup.
I don't understand the question.
@Naruto: This has a good explanation at the beginning of the document: http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html
For anybody needing it. Bash $PS1 Generator: http://www.kirsle.net/wizards/ps1.html ;-)
root
PS1='${debian_chroot:+($debian_chroot)}[\033[01;31m]\h[\033[01;34m] \W \$[\033[00m] '
user
PS1='${debian_chroot:+($debian_chroot)}[\033[01;32m]\u@\h[\033[01;34m] \w \$[\033[00m] '
This is cool.
I use the common one generated by debian
Same as @yomero
i use the one that came with my Macs Terminal now also for my servers.
PS1='${debian_chroot:+($debian_chroot)}\u@[\033[00m][\033[01;31m]\h[\033[00m]:[\033[01;33m]\w[\033[00m]\$ '
http://zeyuu.net/i/4f35f1aa11db8885554959.png
I just use the one that comes with OS X.
$PS1="\h:\W \u\$"
Now I use
PS1="[$(tput bold)][$(tput setaf 3)]\u@\h (\w) ]\$ [$(tput sgr0)]"