Style fixed

This commit is contained in:
Cthulhux 2020-04-10 09:56:01 +02:00
parent c77cc7a8e0
commit c7dbc84889

View file

@ -8,14 +8,14 @@ function sccs_prompt_info () {
if [ -d SCCS ]; then if [ -d SCCS ]; then
# There is an SCCS folder. Does it host SCCS files and does it # There is an SCCS folder. Does it host SCCS files and does it
# have "dirty" files? # have "dirty" files?
local IS_SCCS_FOLDER=false local is_sccs_folder=false
[[ -n SCCS/s.*(#qN) ]] && IS_SCCS_FOLDER=true [[ -n SCCS/s.*(#qN) ]] && is_sccs_folder=true
if [ "$IS_SCCS_FOLDER" = true ]; then if [ "$is_sccs_folder" = true ]; then
local _EDITED_SYM="$ZSH_THEME_SCCS_PROMPT_CLEAN" local _EDITED_SYM="$ZSH_THEME_SCCS_PROMPT_CLEAN"
local SCCS_CHECK=`sccs tell` local sccs_check_command=`sccs tell`
if [[ -n $SCCS_CHECK ]]; then if [[ -n $sccs_check_command ]]; then
# We have dirty files here. # We have dirty files here.
_EDITED_SYM="$ZSH_THEME_SCCS_PROMPT_DIRTY" _EDITED_SYM="$ZSH_THEME_SCCS_PROMPT_DIRTY"
fi fi