Linux/2-Config/bashrc: Difference between revisions
No edit summary |
No edit summary |
||
Line 27: | Line 27: | ||
<pre> | <pre> | ||
alias systemctl='systemctl --no-pager' | alias systemctl='systemctl --no-pager' | ||
</pre> | </pre> | ||
</blockquote> | </blockquote> |
Revision as of 13:56, 16 October 2020
~/.bashrc
- color + root/username
if [ "$color_prompt" = yes ]; then if [[ ${EUID} == 0 ]] ; then PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[01;34m\] \W \$\[\033[00m\] ' # <- changes else PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w \$\[\033[00m\] ' fi else PS1='${debian_chroot:+($debian_chroot)}\u@\h \w \$ ' fi
~/.bash_aliases
touch .bash_aliases
- systemctl without page breaks
alias systemctl='systemctl --no-pager'