# Change prompt
PS1_OLD=${PS1}
export PS1="[\[\033[0;32m\]\w\[\033[0m\]] $ "
#enables color in the terminal bash shell
export CLICOLOR=1
#sets up the color scheme for list
export LSCOLORS=ExFxCxDxBxegedabagacad
#enables color for iTerm
#export TERM=xterm-color
export TERM=xterm-256color
#sets up proper alias c
force_color_prompt=yes #打開註解
...
if [ "$color_prompt" = yes ]; then
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
PS1="[\[\033[0;32m\]\w\[\033[0m\]] $ "
else
#PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
PS1="[\[\033[0;32m\]\w\[\033[0m\]] $ "
fi
...
別把裡面其他東西給刪囉