more p10k changes
This commit is contained in:
parent
85e3ab6994
commit
77016def4b
@ -79,6 +79,8 @@
|
|||||||
cmd_end=`date +%s`
|
cmd_end=`date +%s`
|
||||||
((cmd_time=$cmd_end - $cmd_start))
|
((cmd_time=$cmd_end - $cmd_start))
|
||||||
fi
|
fi
|
||||||
|
cleareol="\e[K"
|
||||||
|
colorreset="\e[1;0m"
|
||||||
if [ $retval -eq 0 ]; then
|
if [ $retval -eq 0 ]; then
|
||||||
cmdstat="✓"
|
cmdstat="✓"
|
||||||
bgcolor="\e[1;30;42m"
|
bgcolor="\e[1;30;42m"
|
||||||
@ -87,11 +89,9 @@
|
|||||||
cmdstat="✘"
|
cmdstat="✘"
|
||||||
bgcolor="\e[1;41m"
|
bgcolor="\e[1;41m"
|
||||||
fgcolor="\e[1;31;40m"
|
fgcolor="\e[1;31;40m"
|
||||||
|
printf "$bgcolor $cmdstat $retval $colorreset\n"
|
||||||
fi
|
fi
|
||||||
cleareol="\e[K"
|
|
||||||
colorreset="\e[1;0m"
|
|
||||||
if [ ! -z "$cmd" ]; then
|
if [ ! -z "$cmd" ]; then
|
||||||
printf "$fgcolor$cmdstat $retval$colorreset\n"
|
|
||||||
if [[ $cmd_time -gt 3 ]]; then
|
if [[ $cmd_time -gt 3 ]]; then
|
||||||
${pkgs.libnotify}/bin/notify-send -a command_complete -i utilities-terminal -u low "$cmdstat $cmd" "in `date -u -d @$cmd_time +'%T'`"
|
${pkgs.libnotify}/bin/notify-send -a command_complete -i utilities-terminal -u low "$cmdstat $cmd" "in `date -u -d @$cmd_time +'%T'`"
|
||||||
echo -e '\a'
|
echo -e '\a'
|
||||||
|
@ -192,9 +192,9 @@
|
|||||||
# Transparent background.
|
# Transparent background.
|
||||||
typeset -g POWERLEVEL9K_PROMPT_CHAR_BACKGROUND=
|
typeset -g POWERLEVEL9K_PROMPT_CHAR_BACKGROUND=
|
||||||
# Green prompt symbol if the last command succeeded.
|
# Green prompt symbol if the last command succeeded.
|
||||||
typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=015
|
typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=010
|
||||||
# Red prompt symbol if the last command failed.
|
# Red prompt symbol if the last command failed.
|
||||||
typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=015
|
typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=010
|
||||||
# Default prompt symbol.
|
# Default prompt symbol.
|
||||||
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='❯'
|
typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='❯'
|
||||||
# Prompt symbol in command vi mode.
|
# Prompt symbol in command vi mode.
|
||||||
|
Loading…
Reference in New Issue
Block a user