Skip to content

Instantly share code, notes, and snippets.

@hetima
Created July 9, 2018 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hetima/34ea8da296d7977a0e17d3b8bb869962 to your computer and use it in GitHub Desktop.
Save hetima/34ea8da296d7977a0e17d3b8bb869962 to your computer and use it in GitHub Desktop.
#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