Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- For all users : /etc/bash.bashrc
- PS1="\[\033[0;33m\][\!]\[\033[0;36m\][`ip addr show dev eth00 | sed -nr 's/.*inet ([^ ]+).*/\1/p'`]\`if [[ \$? = "0" ]]; then echo -n "\\[\\033[32m\\]"; else echo -n "\\[\\033[31m\\]"; fi\`[\u:\w]\$ \[\033[0m\]"
- PS1="\[\033[0;33m\][\!]\[\033[0;36m\]\`if [[ \$? = "0" ]]; then echo -n "\\[\\033[32m\\]"; else echo -n "\\[\\033[31m\\]"; fi\`[\w]\`if [[ \u = "root" ]]; then echo -n '#'; else echo -n '$'; fi\` \[\033[0m\]"
- PS1="\[\033[0;33m\][\!]\[\033[0;36m\]\[\033[38;5;6m\]\u@\h\[\033[0;36m\]\`if [[ \$? = "0" ]]; then echo -n "\\[\\033[32m\\]"; else echo -n "\\[\\033[31m\\]"; fi\`:\w \`if [[ \u = "root" ]]; then echo -n '#'; else echo -n '$'; fi\` \[\033[0m\]"
- alias ls="ls --color=tty"
- alias la="ls -alh"
- alias ll="ls -altrh"
Add Comment
Please, Sign In to add comment