Skip to content

Instantly share code, notes, and snippets.

@mdaisuke
Last active December 14, 2015 05:28
Show Gist options
  • Save mdaisuke/5035196 to your computer and use it in GitHub Desktop.
Save mdaisuke/5035196 to your computer and use it in GitHub Desktop.
いろいろとパクってきてbashのプロンプト作ってみた
export PS1='[$(err=$?;hostname;exit $err)(\t)] \w \[\033[32m\]$(if [ $? = 0 ]; then echo "\033[32m(▰╹◡╹)"; else echo "\033[31mヾ(。>﹏<。)ノ゙"; fi)\[\033[0m\] % '
PROMPT="(%T) %~ %(?.%F{green}(▰╹◡╹%)%f.%F{red}ヾ(。>﹏<。%)ノ゙%f) "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment