Skip to content

Instantly share code, notes, and snippets.

@tobynet
Created June 7, 2013 13:35
Show Gist options
  • Save tobynet/5729299 to your computer and use it in GitHub Desktop.
Save tobynet/5729299 to your computer and use it in GitHub Desktop.
Add separating line between commands on zsh. zshでコマンドを実行したら、次のプロンプトの前に区切り線を出して、コマンドとコマンドの間を見易くするやつ。~/.zshrcなどにコピペして使う。
# Add separating line between commands
# cf. oh-my-zsh af-magic theme https://github.com/robbyrussell/oh-my-zsh/blob/master/themes/af-magic.zsh-theme
if [[ ! ( $PROMPT =~ '-----------------------------------------' ) ]]; then
PROMPT='$FG[237]------------------------------------------------------------%{$reset_color%}
'"$PROMPT"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment