Rename configure files

This commit is contained in:
Ilan Cosman 2020-05-22 12:46:05 -07:00
parent a5780a6b87
commit 2d366375e8
12 changed files with 32 additions and 29 deletions

View File

@ -54,9 +54,9 @@ function _truncate_pwd
set pwd (string replace $dir $dirTruncated $pwd)
set -l lilac (set_color $tide_pwd_color_truncated_dirs)
set -l dBlue (set_color $tide_pwd_color_mid_dirs)
set colorPwd (string replace $dir "$lilac"$dirTruncated"$dBlue" $colorPwd)
set -l colorTruncatedDirs (set_color $tide_pwd_color_truncated_dirs)
set -l colorMidDirs (set_color $tide_pwd_color_mid_dirs)
set colorPwd (string replace $dir "$colorTruncatedDirs"$dirTruncated"$colorMidDirs" $colorPwd)
if test (string length $pwd) -lt $maxLength
break

View File

@ -1,8 +0,0 @@
function fake_tide_left_prompt
for item in fake_tide_{$fake_tide_left_prompt_items}
set -l itemOutput (_$item)
printf '%b' "$itemOutput"
set_color normal
end
end

View File

@ -1,15 +1,18 @@
function fake_prompt
set -g last_pipestatus $pipestatus
set -g last_status $status
if test "$fake_tide_newline" = 'true'
printf '\n'
printf '%b' '\n'
end
set_color $fake_tide_prompt_connection_color
printf "%.s$fake_tide_prompt_connection_icon" (seq $fake_columns)
set_color $fish_color_normal
set_color normal
printf '\r'
fake_tide_right_prompt
printf '%b' '\r'
_fake_tide_right_prompt
printf '\r'
fake_tide_left_prompt
end
printf '%b' '\r'
_fake_tide_left_prompt
end

View File

@ -0,0 +1,8 @@
function _fake_tide_left_prompt
for item in _fake_tide_item_{$fake_tide_left_prompt_items}
set -l itemOutput ($item)
printf '%b' "$itemOutput"
set_color normal
end
end

View File

@ -1,4 +1,4 @@
function fake_tide_right_prompt
function _fake_tide_right_prompt
set -l splitText (string split '\n' (_fetch_right_prompt_items))
set -l printAtEndedRightPromptHeight (count $splitText)
@ -12,8 +12,8 @@ end
function _fetch_right_prompt_items
printf '%s' ' '
for item in fake_tide_{$fake_tide_right_prompt_items}
set -l itemOutput (_$item)
for item in _fake_tide_item_{$fake_tide_right_prompt_items}
set -l itemOutput ($item)
printf '%s' "$itemOutput"
set_color normal

View File

@ -1,3 +0,0 @@
function _fake_tide_newline
printf '%s' '\n'
end

View File

@ -1,4 +1,4 @@
function _fake_tide_cmd_duration
function _fake_tide_item_cmd_duration
set_color $tide_cmd_duration_color
printf '%s ' '5s'
end

View File

@ -1,4 +1,4 @@
function _fake_tide_git_prompt
function _fake_tide_item_git_prompt
set_color $_tide_color_green
printf '%s ' 'master'
end

View File

@ -0,0 +1,3 @@
function _fake_tide_item_newline
printf '%s' '\n'
end

View File

@ -1,4 +1,4 @@
function _fake_tide_prompt_char
function _fake_tide_item_prompt_char
set_color $_tide_color_green
printf '%s ' ''
end

View File

@ -1,4 +1,4 @@
function _fake_tide_pwd
function _fake_tide_item_pwd
set_color -o $_tide_color_light_blue
printf '%s' '~'
set_color normal

View File

@ -1,4 +1,4 @@
function _fake_tide_time
function _fake_tide_item_time
set_color $fake_tide_time_color
printf '%s ' (date +$fake_tide_time_format)
end