Created
June 7, 2013 13:35
-
-
Save tobynet/5729299 to your computer and use it in GitHub Desktop.
Add separating line between commands on zsh. zshでコマンドを実行したら、次のプロンプトの前に区切り線を出して、コマンドとコマンドの間を見易くするやつ。~/.zshrcなどにコピペして使う。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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