美化 Shell
sudo apt install powerline
vi .bashrc
...........
POWERLINE_SCRIPT=/usr/share/powerline/bindings/bash/powerline.sh
if [ -f $POWERLINE_SCRIPT ]; then
source $POWERLINE_SCRIPT
fi
nano .bashrc
if [ "$color_prompt" = yes ]; then
PS1='
${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\] \d [\t] : \[$
\$ '
else
PS1='
${debian_chroot:+($debian_chroot)}\u@\h \d [\t] : \w
\$ '
figit clone --depth=1 https://github.com/Bash-it/bash-it.git ~/.bash_it
~/.bash_it/install.sh
Last updated
Was this helpful?