Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#1行目にカレントパス、2行目に時刻を表示 $i $o に値が代入されていたら内容を表示
PROMPT='%B[%~]%b$([ -n "$i" ] && echo "\n%B$"i:%b $i)$([ -n "$o" ] && echo "\n%B$"o:%b $o)
%B[%T]%b '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.