mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-27 03:33:26 +03:00
Rename configure files
This commit is contained in:
parent
a5780a6b87
commit
2d366375e8
@ -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
|
||||
|
@ -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
|
@ -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
|
||||
|
@ -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
|
@ -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
|
@ -1,3 +0,0 @@
|
||||
function _fake_tide_newline
|
||||
printf '%s' '\n'
|
||||
end
|
@ -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
|
@ -1,4 +1,4 @@
|
||||
function _fake_tide_git_prompt
|
||||
function _fake_tide_item_git_prompt
|
||||
set_color $_tide_color_green
|
||||
printf '%s ' 'master'
|
||||
end
|
@ -0,0 +1,3 @@
|
||||
function _fake_tide_item_newline
|
||||
printf '%s' '\n'
|
||||
end
|
@ -1,4 +1,4 @@
|
||||
function _fake_tide_prompt_char
|
||||
function _fake_tide_item_prompt_char
|
||||
set_color $_tide_color_green
|
||||
printf '%s ' '❯'
|
||||
end
|
@ -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
|
@ -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
|
Loading…
Reference in New Issue
Block a user