Skip to content

Commit 9a26880

Browse files
committed
Show ascii return symbol for cygwin terminals.
1 parent c325eac commit 9a26880

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

themes/gebner.zsh-theme

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ if [ $UID -eq 0 ]; then CARETCOLOR="red"; else CARETCOLOR="blue"; fi
44

55
REPORTTIME=10 # show execution times for long-running commands
66

7-
local return_code="%(?..%{$fg[red]%}↵ %? %{$reset_color%})"
7+
local return_symbol=""
8+
if [ "$TERM" = cygwin ]; then return_symbol="<-|"; fi
9+
local return_code="%(?..%{$fg[red]%}$return_symbol %? %{$reset_color%})"
810
local user=
911
if [ "$USER" != gebner ]; then user='%{$fg[cyan]%}%n%{$fg_bold[blue]%}@%{$reset_color%}'; fi
1012

0 commit comments

Comments
 (0)