@
little_cup 听起来真是一个巧妙的设置,可是在我的系统里不生效,提示“-bash: /Users/MasterMac/.bash_profile: line 24: syntax error: unexpected end of file“
这是我的.bash_profile
########################This is my .bash_profile#############################
#for color
export CLICOLOR=1
export PS1='\n\[\e[0;30m\]┌─\[\e[0m\]\[\e[01;30m\]\u@\h\[\e[00m\]:\[\e[01;34m\]\w\[\e[00m\]\n\[\e[0;30m\]└───\[\e[0m\]\$ \[\e[00;33m\]$(__git_ps1 "(%s)")\[\e[00m\] '
printf "\n"
SaySomething=$(fortune -a -s | sed -E "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g")
cowsay $SaySomething | lolcat -f
printf "\n"
# Load RVM into a shell session *as a function*
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
if [ "$1" == "" ] && [[ -z $(ps aux |grep wireshark |grep -v grep) ]]; then
/usr/local/bin/fish
echo Goodby!
exit 0