Answers for "how to shorten the prompt linux"

0

shorten terminal prompt linux

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u@h[33[00m]:[33[01;34m]w[33[00m]$ '
else
    PS1='${debian_chroot:+($debian_chroot)}u@h:w$ '
fi

// Replace Above code with Following Code in ~/.bashrc

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}[33[01;32m]u[33[00m]:[33[01;34m]W[33[00m]$ '
else
    PS1='${debian_chroot:+($debian_chroot)}u:W$ '
fi
Posted by: Guest on August-25-2021

Code answers related to "how to shorten the prompt linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language