Rename variables

This commit is contained in:
Ilan Cosman 2021-05-20 08:46:39 -07:00
parent 4b3ce437eb
commit 230821a99f
27 changed files with 333 additions and 340 deletions

View File

@ -1,8 +1,8 @@
function _tide_item_character
if test $_tide_last_status = 0
set -g tide_character_color $tide_character_success_color
set -g tide_character_color $tide_character_color_success
else
set -g tide_character_color $tide_character_failure_color
set -g tide_character_color $tide_character_color_failure
end
if test "$fish_key_bindings" = fish_default_key_bindings
@ -10,13 +10,13 @@ function _tide_item_character
else
switch $fish_bind_mode
case default
_tide_print_item character $tide_character_vi_default_icon
_tide_print_item character $tide_character_vi_icon_default
case insert
_tide_print_item character $tide_character_vi_insert_icon
_tide_print_item character $tide_character_vi_icon_insert
case replace replace_one
_tide_print_item character $tide_character_vi_replace_icon
_tide_print_item character $tide_character_vi_icon_replace
case visual
_tide_print_item character $tide_character_vi_visual_icon
_tide_print_item character $tide_character_vi_icon_visual
end
end
end

View File

@ -1,9 +1,9 @@
function _tide_item_context
if set -q SSH_TTY
tide_context_color=$tide_context_ssh_color _tide_print_item context $USER'@'$hostname
tide_context_color_color=$tide_context_ssh _tide_print_item context $USER'@'$hostname
else if contains -- $USER root toor Administrator
tide_context_color=$tide_context_root_color _tide_print_item context $USER'@'$hostname
tide_context_color_color=$tide_context_root _tide_print_item context $USER'@'$hostname
else if test "$tide_context_always_display" = true
tide_context_color=$tide_context_default_color _tide_print_item context $USER'@'$hostname
tide_context_color_color=$tide_context_default _tide_print_item context $USER'@'$hostname
end
end

View File

@ -1,5 +1,5 @@
function _tide_item_git
set -l location_color (set_color $tide_git_branch_color || echo)
set -l location_color (set_color $tide_git_color_branch || echo)
set -l location $location_color(git branch --show-current 2>/dev/null) || return
# --quiet = don't error if there are no commits
git rev-parse --quiet --git-dir --is-inside-git-dir --short HEAD |
@ -60,11 +60,11 @@ function _tide_item_git
set -l untracked (string match --regex '^\?\?' $git_info | count) || set -e untracked
_tide_print_item git $location_color $tide_git_icon' ' (set_color white) $location \
(set_color $tide_git_operation_color) ' '$operation ' '$step/$total_steps \
(set_color $tide_git_upstream_color) ' ⇣'$upstream_behind ' ⇡'$upstream_ahead \
(set_color $tide_git_stash_color) ' *'$stash \
(set_color $tide_git_conflicted_color) ' ~'$conflicted \
(set_color $tide_git_staged_color) ' +'$staged \
(set_color $tide_git_dirty_color) ' !'$dirty \
(set_color $tide_git_untracked_color) ' ?'$untracked
(set_color $tide_git_color_operation) ' '$operation ' '$step/$total_steps \
(set_color $tide_git_color_upstream) ' ⇣'$upstream_behind ' ⇡'$upstream_ahead \
(set_color $tide_git_color_stash) ' *'$stash \
(set_color $tide_git_color_conflicted) ' ~'$conflicted \
(set_color $tide_git_color_staged) ' +'$staged \
(set_color $tide_git_color_dirty) ' !'$dirty \
(set_color $tide_git_color_untracked) ' ?'$untracked
end

View File

@ -34,10 +34,10 @@ function _tide_item_pwd
test "$split_pwd[1]" = '~' || set split_pwd_for_output[1] '/'$split_pwd_for_output[1]
if not test -w $PWD
_tide_print_item pwd $color_dirs$tide_pwd_unwritable_icon' ' (string join -- / $split_pwd_for_output)
_tide_print_item pwd $color_dirs$tide_pwd_icon_unwritable' ' (string join -- / $split_pwd_for_output)
else if test $PWD = $HOME
_tide_print_item pwd $color_dirs$tide_pwd_home_icon' ' (string join -- / $split_pwd_for_output)
_tide_print_item pwd $color_dirs$tide_pwd_icon_home' ' (string join -- / $split_pwd_for_output)
else
_tide_print_item pwd $color_dirs$tide_pwd_dir_icon' ' (string join -- / $split_pwd_for_output)
_tide_print_item pwd $color_dirs$tide_pwd_icon_dir' ' (string join -- / $split_pwd_for_output)
end
end

View File

@ -2,24 +2,24 @@ function _tide_item_status
if string match --quiet --invert 0 $_tide_last_pipestatus # If there is a failure anywhere in the pipestatus
if test "$_tide_last_pipestatus" = 1 # If simple failure
if not contains character $tide_left_prompt_items
set -g tide_status_bg_color $tide_status_failure_bg_color
set -g tide_status_color $tide_status_failure_color
_tide_print_item status $tide_status_failure_icon' ' 1
set -g tide_status_bg_color $tide_status_bg_color_failure
set -g tide_status_color $tide_status_color_failure
_tide_print_item status $tide_status_icon_failure' ' 1
end
else if test $_tide_last_status = 0
set -g tide_status_bg_color $tide_status_success_bg_color
set -g tide_status_color $tide_status_success_color
_tide_print_item status $tide_status_success_icon' ' \
set -g tide_status_bg_color $tide_status_bg_color_success
set -g tide_status_color $tide_status_color_success
_tide_print_item status $tide_status_icon_success' ' \
(fish_status_to_signal $_tide_last_pipestatus | string replace SIG '' | string join '|')
else
set -g tide_status_bg_color $tide_status_failure_bg_color
set -g tide_status_color $tide_status_failure_color
_tide_print_item status $tide_status_failure_icon' ' \
set -g tide_status_bg_color $tide_status_bg_color_failure
set -g tide_status_color $tide_status_color_failure
_tide_print_item status $tide_status_icon_failure' ' \
(fish_status_to_signal $_tide_last_pipestatus | string replace SIG '' | string join '|')
end
else if not contains character $tide_left_prompt_items
set -g tide_status_bg_color $tide_status_success_bg_color
set -g tide_status_color $tide_status_success_color
_tide_print_item status $tide_status_success_icon
set -g tide_status_bg_color $tide_status_bg_color_success
set -g tide_status_color $tide_status_color_success
_tide_print_item status $tide_status_icon_success
end
end

View File

@ -1,20 +1,20 @@
function _tide_item_vi_mode
test "$fish_key_bindings" != fish_default_key_bindings && switch $fish_bind_mode
case default
set -g tide_vi_mode_bg_color $tide_vi_mode_default_bg_color
set_color $tide_vi_mode_default_color
printf '%s' $tide_vi_mode_default_icon
set -g tide_vi_mode_bg_color $tide_vi_mode_bg_color_default
set_color $tide_vi_mode_color_default
printf '%s' $tide_vi_mode_icon_default
case insert
set -g tide_vi_mode_bg_color $tide_vi_mode_insert_bg_color
set_color $tide_vi_mode_insert_color
printf '%s' $tide_vi_mode_insert_icon
set -g tide_vi_mode_bg_color $tide_vi_mode_bg_color_insert
set_color $tide_vi_mode_color_insert
printf '%s' $tide_vi_mode_icon_insert
case replace replace_one
set -g tide_vi_mode_bg_color $tide_vi_mode_replace_bg_color
set_color $tide_vi_mode_replace_color
printf '%s' $tide_vi_mode_replace_icon
set -g tide_vi_mode_bg_color $tide_vi_mode_bg_color_replace
set_color $tide_vi_mode_color_replace
printf '%s' $tide_vi_mode_icon_replace
case visual
set -g tide_vi_mode_bg_color $tide_vi_mode_visual_bg_color
set_color $tide_vi_mode_visual_color
printf '%s' $tide_vi_mode_visual_icon
set -g tide_vi_mode_bg_color $tide_vi_mode_bg_color_visual
set_color $tide_vi_mode_color_visual
printf '%s' $tide_vi_mode_icon_visual
end
end

View File

@ -8,21 +8,21 @@ function _tide_print_item -a item
printf '%s' $tide_left_prompt_prefix
end
else if test "$item_bg_color" = "$_tide_previous_bg_color"
set_color $tide_left_prompt_item_separator_same_color_color
printf '%s' $tide_left_prompt_item_separator_same_color
set_color $tide_prompt_color_separator_same_color
printf '%s' $tide_left_prompt_separator_same_color
else
set_color $_tide_previous_bg_color -b $item_bg_color
printf '%s' $tide_left_prompt_item_separator_diff_color
printf '%s' $tide_left_prompt_separator_diff_color
end
else if test "$_tide_last_item" = newline
set_color $item_bg_color -b normal
printf '%s' $tide_right_prompt_prefix
else if test "$item_bg_color" = "$_tide_previous_bg_color"
set_color $tide_right_prompt_item_separator_same_color_color
printf '%s' $tide_right_prompt_item_separator_same_color
set_color $tide_prompt_color_separator_same_color
printf '%s' $tide_right_prompt_separator_same_color
else
set_color $item_bg_color -b $_tide_previous_bg_color
printf '%s' $tide_right_prompt_item_separator_diff_color
printf '%s' $tide_right_prompt_separator_diff_color
end
item_color_name=tide_"$item"_color set_color $$item_color_name -b $item_bg_color

View File

@ -5,7 +5,7 @@ function _tide_prompt
test "$tide_prompt_add_newline_before" = true && echo
left_prompt=(_tide_left_prompt) right_prompt=(_tide_right_prompt) if set -q left_prompt[2] # If prompt is two lines
set -l prompt_and_frame_color (set_color $tide_prompt_frame_and_connection_color -b normal || echo)
set -l prompt_and_frame_color (set_color $tide_prompt_color_frame_and_connection -b normal || echo)
if test "$tide_left_prompt_frame_enabled" = true
set left_prompt[1] $prompt_and_frame_color╭─"$left_prompt[1]"
@ -20,7 +20,7 @@ function _tide_prompt
set -l length_to_move (math $COLUMNS - ( # Regex removes color codes
string replace -ar '\e(\[[\d;]*|\(B\e\[)m(\co)?' '' "$left_prompt[1]""$right_prompt[1]" | string length))
test $length_to_move -gt 0 && string repeat --no-newline --max $length_to_move $tide_prompt_connection_icon
test $length_to_move -gt 0 && string repeat --no-newline --max $length_to_move $tide_prompt_icon_connection
printf '%s' $right_prompt[1] \n $left_prompt[-1]' '
set -U $_tide_right_prompt_display_var $right_prompt[2]

View File

@ -18,16 +18,16 @@ end
function _enable_icons
set -p fake_tide_left_prompt_items os
set -g fake_tide_pwd_dir_icon 
set -g fake_tide_pwd_home_icon 
set -g fake_tide_pwd_icon_dir
set -g fake_tide_pwd_icon_home
set -g fake_tide_cmd_duration_icon
set -g fake_tide_git_icon
end
function _disable_icons
_tide_find_and_remove os fake_tide_left_prompt_items
set fake_tide_pwd_dir_icon
set fake_tide_pwd_home_icon
set fake_tide_pwd_icon_dir
set fake_tide_pwd_icon_home
set fake_tide_cmd_duration_icon
set fake_tide_git_icon
end

View File

@ -2,22 +2,22 @@ function prompt_connection
_tide_title 'Prompt Connection'
_tide_option 1 Disconnected
_tide_display_prompt fake_tide_prompt_connection_icon ' '
_tide_display_prompt fake_tide_prompt_icon_connection ' '
_tide_option 2 Dotted
_tide_display_prompt fake_tide_prompt_connection_icon '·'
_tide_display_prompt fake_tide_prompt_icon_connection '·'
_tide_option 3 Solid
_tide_display_prompt fake_tide_prompt_connection_icon '─'
_tide_display_prompt fake_tide_prompt_icon_connection '─'
_tide_menu
switch $_tide_selected_option
case 1
set -g fake_tide_prompt_connection_icon ' '
set -g fake_tide_prompt_icon_connection ' '
case 2
set -g fake_tide_prompt_connection_icon '·'
set -g fake_tide_prompt_icon_connection '·'
case 3
set -g fake_tide_prompt_connection_icon '─'
set -g fake_tide_prompt_icon_connection '─'
end
switch $_tide_configure_style
case lean

View File

@ -2,7 +2,7 @@ function prompt_connection_andor_frame_color
if test "$_tide_16color" = true ||
test "$fake_tide_left_prompt_frame_enabled" = false -a \
"$fake_tide_right_prompt_frame_enabled" = false -a \
"$fake_tide_prompt_connection_icon" = ' '
"$fake_tide_prompt_icon_connection" = ' '
_next_choice all/prompt_spacing
return 0
end
@ -10,27 +10,27 @@ function prompt_connection_andor_frame_color
_tide_title "Connection & Frame Color"
_tide_option 1 Lightest
_tide_display_prompt fake_tide_prompt_frame_and_connection_color 808080
_tide_display_prompt fake_tide_prompt_color_frame_and_connection 808080
_tide_option 2 Light
_tide_display_prompt fake_tide_prompt_frame_and_connection_color 6C6C6C
_tide_display_prompt fake_tide_prompt_color_frame_and_connection 6C6C6C
_tide_option 3 Dark
_tide_display_prompt fake_tide_prompt_frame_and_connection_color 585858
_tide_display_prompt fake_tide_prompt_color_frame_and_connection 585858
_tide_option 4 Darkest
_tide_display_prompt fake_tide_prompt_frame_and_connection_color 444444
_tide_display_prompt fake_tide_prompt_color_frame_and_connection 444444
_tide_menu
switch $_tide_selected_option
case 1
set -g fake_tide_prompt_frame_and_connection_color 808080
set -g fake_tide_prompt_color_frame_and_connection 808080
case 2
set -g fake_tide_prompt_frame_and_connection_color 6C6C6C
set -g fake_tide_prompt_color_frame_and_connection 6C6C6C
case 3
set -g fake_tide_prompt_frame_and_connection_color 585858
set -g fake_tide_prompt_color_frame_and_connection 585858
case 4
set -g fake_tide_prompt_frame_and_connection_color 444444
set -g fake_tide_prompt_color_frame_and_connection 444444
end
_next_choice all/prompt_spacing
end

View File

@ -2,39 +2,39 @@ function classic_prompt_separators
_tide_title 'Prompt Separators'
_tide_option 1 Angled
set -g fake_tide_left_prompt_item_separator_same_color ''
set -g fake_tide_right_prompt_item_separator_same_color ''
set -g fake_tide_left_prompt_separator_same_color ''
set -g fake_tide_right_prompt_separator_same_color ''
_tide_display_prompt
_tide_option 2 Vertical
set -g fake_tide_left_prompt_item_separator_same_color '│'
set -g fake_tide_right_prompt_item_separator_same_color '│'
set -g fake_tide_left_prompt_separator_same_color '│'
set -g fake_tide_right_prompt_separator_same_color '│'
_tide_display_prompt
_tide_option 3 Slanted
set -g fake_tide_left_prompt_item_separator_same_color ''
set -g fake_tide_right_prompt_item_separator_same_color ''
set -g fake_tide_left_prompt_separator_same_color ''
set -g fake_tide_right_prompt_separator_same_color ''
_tide_display_prompt
_tide_option 4 Round
set -g fake_tide_left_prompt_item_separator_same_color ''
set -g fake_tide_right_prompt_item_separator_same_color ''
set -g fake_tide_left_prompt_separator_same_color ''
set -g fake_tide_right_prompt_separator_same_color ''
_tide_display_prompt
_tide_menu
switch $_tide_selected_option
case 1
set -g fake_tide_left_prompt_item_separator_same_color ''
set -g fake_tide_right_prompt_item_separator_same_color ''
set -g fake_tide_left_prompt_separator_same_color ''
set -g fake_tide_right_prompt_separator_same_color ''
case 2
set -g fake_tide_left_prompt_item_separator_same_color '│'
set -g fake_tide_right_prompt_item_separator_same_color '│'
set -g fake_tide_left_prompt_separator_same_color '│'
set -g fake_tide_right_prompt_separator_same_color '│'
case 3
set -g fake_tide_left_prompt_item_separator_same_color ''
set -g fake_tide_right_prompt_item_separator_same_color ''
set -g fake_tide_left_prompt_separator_same_color ''
set -g fake_tide_right_prompt_separator_same_color ''
case 4
set -g fake_tide_left_prompt_item_separator_same_color ''
set -g fake_tide_right_prompt_item_separator_same_color ''
set -g fake_tide_left_prompt_separator_same_color ''
set -g fake_tide_right_prompt_separator_same_color ''
end
_next_choice powerline/powerline_prompt_heads
end

View File

@ -2,39 +2,39 @@ function rainbow_prompt_separators
_tide_title 'Prompt Separators'
_tide_option 1 Angled
set -g fake_tide_left_prompt_item_separator_diff_color ''
set -g fake_tide_right_prompt_item_separator_diff_color ''
set -g fake_tide_left_prompt_separator_diff_color ''
set -g fake_tide_right_prompt_separator_diff_color ''
_tide_display_prompt
_tide_option 2 Vertical
set -g fake_tide_left_prompt_item_separator_diff_color ''
set -g fake_tide_right_prompt_item_separator_diff_color ''
set -g fake_tide_left_prompt_separator_diff_color ''
set -g fake_tide_right_prompt_separator_diff_color ''
_tide_display_prompt
_tide_option 3 Slanted
set -g fake_tide_left_prompt_item_separator_diff_color ''
set -g fake_tide_right_prompt_item_separator_diff_color ''
set -g fake_tide_left_prompt_separator_diff_color ''
set -g fake_tide_right_prompt_separator_diff_color ''
_tide_display_prompt
_tide_option 4 Round
set -g fake_tide_left_prompt_item_separator_diff_color ''
set -g fake_tide_right_prompt_item_separator_diff_color ''
set -g fake_tide_left_prompt_separator_diff_color ''
set -g fake_tide_right_prompt_separator_diff_color ''
_tide_display_prompt
_tide_menu
switch $_tide_selected_option
case 1
set -g fake_tide_left_prompt_item_separator_diff_color ''
set -g fake_tide_right_prompt_item_separator_diff_color ''
set -g fake_tide_left_prompt_separator_diff_color ''
set -g fake_tide_right_prompt_separator_diff_color ''
case 2
set -g fake_tide_left_prompt_item_separator_diff_color ''
set -g fake_tide_right_prompt_item_separator_diff_color ''
set -g fake_tide_left_prompt_separator_diff_color ''
set -g fake_tide_right_prompt_separator_diff_color ''
case 3
set -g fake_tide_left_prompt_item_separator_diff_color ''
set -g fake_tide_right_prompt_item_separator_diff_color ''
set -g fake_tide_left_prompt_separator_diff_color ''
set -g fake_tide_right_prompt_separator_diff_color ''
case 4
set -g fake_tide_left_prompt_item_separator_diff_color ''
set -g fake_tide_right_prompt_item_separator_diff_color ''
set -g fake_tide_left_prompt_separator_diff_color ''
set -g fake_tide_right_prompt_separator_diff_color ''
end
_next_choice powerline/powerline_prompt_heads
end

View File

@ -1,11 +1,11 @@
tide_character_bg_color normal
tide_character_failure_color FF0000
tide_character_color_failure FF0000
tide_character_color_success $_tide_color_green
tide_character_icon ''
tide_character_success_color $_tide_color_green
tide_character_vi_default_icon ''
tide_character_vi_insert_icon ''
tide_character_vi_replace_icon '▶'
tide_character_vi_visual_icon V
tide_character_vi_icon_default ''
tide_character_vi_icon_insert ''
tide_character_vi_icon_replace '▶'
tide_character_vi_icon_visual V
tide_chruby_bg_color CC342D
tide_chruby_color white
tide_chruby_icon ''
@ -16,28 +16,27 @@ tide_cmd_duration_icon
tide_cmd_duration_threshold 3000
tide_context_always_display false
tide_context_bg_color 444444
tide_context_default_color D7AF87
tide_context_root_color $_tide_color_gold
tide_context_ssh_color D7AF87
tide_context_color_default D7AF87
tide_context_color_root_color $_tide_color_gold
tide_context_color_ssh D7AF87
tide_git_bg_color 444444
tide_git_branch_color $_tide_color_green
tide_git_conflicted_color FF0000
tide_git_dirty_color $_tide_color_gold
tide_git_color_branch $_tide_color_green
tide_git_color_conflicted FF0000
tide_git_color_dirty $_tide_color_gold
tide_git_color_operation FF0000
tide_git_color_staged $_tide_color_gold
tide_git_color_stash $_tide_color_green
tide_git_color_untracked $_tide_color_light_blue
tide_git_color_upstream $_tide_color_green
tide_git_icon
tide_git_operation_color FF0000
tide_git_staged_color $_tide_color_gold
tide_git_stash_color $_tide_color_green
tide_git_untracked_color $_tide_color_light_blue
tide_git_upstream_color $_tide_color_green
tide_jobs_bg_color 444444
tide_jobs_color $_tide_color_dark_green
tide_jobs_icon ''
tide_left_prompt_frame_enabled true
tide_left_prompt_item_separator_diff_color ''
tide_left_prompt_item_separator_same_color ''
tide_left_prompt_item_separator_same_color_color 949494
tide_left_prompt_items pwd git newline
tide_left_prompt_prefix ''
tide_left_prompt_separator_diff_color ''
tide_left_prompt_separator_same_color ''
tide_left_prompt_suffix ''
tide_nvm_bg_color 444444
tide_nvm_color 00AFAF
@ -49,49 +48,49 @@ tide_php_bg_color 444444
tide_php_color 875FFF
tide_php_icon ''
tide_prompt_add_newline_before true
tide_prompt_connection_icon ' '
tide_prompt_frame_and_connection_color 6C6C6C
tide_prompt_color_frame_and_connection 6C6C6C
tide_prompt_color_separator_same_color 949494
tide_prompt_icon_connection ' '
tide_prompt_pad_items true
tide_pwd_bg_color 444444
tide_pwd_color_anchors $_tide_color_light_blue
tide_pwd_color_dirs $_tide_color_dark_blue
tide_pwd_color_truncated_dirs 8787AF
tide_pwd_dir_icon
tide_pwd_home_icon
tide_pwd_icon_dir
tide_pwd_icon_home
tide_pwd_icon_unwritable ''
tide_pwd_markers .bzr .citc .git .hg .node-version .python-version .ruby-version .shorten_folder_marker .svn .terraform Cargo.toml composer.json CVS go.mod package.json
tide_pwd_truncate_margin 10
tide_pwd_unwritable_icon ''
tide_right_prompt_frame_enabled true
tide_right_prompt_item_separator_diff_color ''
tide_right_prompt_item_separator_same_color ''
tide_right_prompt_item_separator_same_color_color 949494
tide_right_prompt_items status cmd_duration context jobs nvm virtual_env rustc php vi_mode chruby
tide_right_prompt_prefix ''
tide_right_prompt_separator_diff_color ''
tide_right_prompt_separator_same_color ''
tide_right_prompt_suffix ''
tide_rustc_bg_color 444444
tide_rustc_color 00AFAF
tide_rustc_icon ''
tide_status_failure_bg_color 444444
tide_status_failure_color D70000
tide_status_failure_icon '✘'
tide_status_success_bg_color 444444
tide_status_success_color $_tide_color_dark_green
tide_status_success_icon '✔'
tide_status_bg_color_failure 444444
tide_status_bg_color_success 444444
tide_status_color_failure D70000
tide_status_color_success $_tide_color_dark_green
tide_status_icon_failure '✘'
tide_status_icon_success '✔'
tide_time_bg_color 444444
tide_time_color 5F8787
tide_time_format '%T'
tide_vi_mode_default_bg_color 444444
tide_vi_mode_default_color 87af00
tide_vi_mode_default_icon DEFAULT
tide_vi_mode_insert_bg_color 444444
tide_vi_mode_insert_color
tide_vi_mode_insert_icon
tide_vi_mode_replace_bg_color 444444
tide_vi_mode_replace_color d78700
tide_vi_mode_replace_icon REPLACE
tide_vi_mode_visual_bg_color 444444
tide_vi_mode_visual_color 5f87d7
tide_vi_mode_visual_icon VISUAL
tide_vi_mode_bg_color_default 444444
tide_vi_mode_bg_color_insert 444444
tide_vi_mode_bg_color_replace 444444
tide_vi_mode_bg_color_visual 444444
tide_vi_mode_color_default 87af00
tide_vi_mode_color_insert
tide_vi_mode_color_replace d78700
tide_vi_mode_color_visual 5f87d7
tide_vi_mode_icon_default DEFAULT
tide_vi_mode_icon_insert
tide_vi_mode_icon_replace REPLACE
tide_vi_mode_icon_visual VISUAL
tide_virtual_env_bg_color 444444
tide_virtual_env_color 00AFAF
tide_virtual_env_display_mode projectName

View File

@ -1,53 +1,52 @@
tide_character_bg_color normal
tide_character_failure_color brred
tide_character_success_color brgreen
tide_character_color_failure brred
tide_character_color_success brgreen
tide_chruby_bg_color black
tide_chruby_color red
tide_cmd_duration_bg_color black
tide_cmd_duration_color brblack
tide_context_bg_color black
tide_context_default_color yellow
tide_context_root_color bryellow
tide_context_ssh_color yellow
tide_context_color_default yellow
tide_context_color_root bryellow
tide_context_color_ssh yellow
tide_git_bg_color black
tide_git_branch_color brgreen
tide_git_conflicted_color brred
tide_git_dirty_color bryellow
tide_git_operation_color brred
tide_git_staged_color bryellow
tide_git_stash_color brgreen
tide_git_untracked_color brblue
tide_git_upstream_color brgreen
tide_git_color_branch brgreen
tide_git_color_conflicted brred
tide_git_color_dirty bryellow
tide_git_color_operation brred
tide_git_color_staged bryellow
tide_git_color_stash brgreen
tide_git_color_untracked brblue
tide_git_color_upstream brgreen
tide_jobs_bg_color black
tide_jobs_color green
tide_left_prompt_item_separator_same_color_color brblack
tide_nvm_bg_color black
tide_nvm_color cyan
tide_os_bg_color black
tide_os_color brwhite
tide_php_bg_color black
tide_php_color brmagenta
tide_prompt_frame_and_connection_color brblack
tide_prompt_color_frame_and_connection brblack
tide_prompt_color_separator_same_color brblack
tide_pwd_bg_color black
tide_pwd_color_anchors brcyan
tide_pwd_color_dirs cyan
tide_pwd_color_truncated_dirs magenta
tide_right_prompt_item_separator_same_color_color brblack
tide_rustc_bg_color black
tide_rustc_color cyan
tide_status_failure_bg_color black
tide_status_failure_color red
tide_status_success_bg_color black
tide_status_success_color green
tide_status_bg_color_failure black
tide_status_bg_color_success black
tide_status_color_failure red
tide_status_color_success green
tide_time_bg_color black
tide_time_color brblack
tide_vi_mode_default_bg_color black
tide_vi_mode_default_color green
tide_vi_mode_insert_bg_color black
tide_vi_mode_insert_color
tide_vi_mode_replace_bg_color black
tide_vi_mode_replace_color yellow
tide_vi_mode_visual_bg_color black
tide_vi_mode_visual_color blue
tide_vi_mode_bg_color_default black
tide_vi_mode_bg_color_insert black
tide_vi_mode_bg_color_replace black
tide_vi_mode_bg_color_visual black
tide_vi_mode_color_default green
tide_vi_mode_color_insert
tide_vi_mode_color_replace yellow
tide_vi_mode_color_visual blue
tide_virtual_env_bg_color black
tide_virtual_env_color cyan

View File

@ -1,11 +1,11 @@
tide_character_bg_color normal
tide_character_failure_color FF0000
tide_character_color_failure FF0000
tide_character_color_success $_tide_color_green
tide_character_icon ''
tide_character_success_color $_tide_color_green
tide_character_vi_default_icon ''
tide_character_vi_insert_icon ''
tide_character_vi_replace_icon '▶'
tide_character_vi_visual_icon V
tide_character_vi_icon_default ''
tide_character_vi_icon_insert ''
tide_character_vi_icon_replace '▶'
tide_character_vi_icon_visual V
tide_chruby_bg_color normal
tide_chruby_color CC342D
tide_chruby_icon ''
@ -16,28 +16,27 @@ tide_cmd_duration_icon
tide_cmd_duration_threshold 3000
tide_context_always_display false
tide_context_bg_color normal
tide_context_default_color D7AF87
tide_context_root_color $_tide_color_gold
tide_context_ssh_color D7AF87
tide_context_color_default D7AF87
tide_context_color_root_color $_tide_color_gold
tide_context_color_ssh D7AF87
tide_git_bg_color normal
tide_git_branch_color $_tide_color_green
tide_git_conflicted_color FF0000
tide_git_dirty_color $_tide_color_gold
tide_git_color_branch $_tide_color_green
tide_git_color_conflicted FF0000
tide_git_color_dirty $_tide_color_gold
tide_git_color_operation FF0000
tide_git_color_staged $_tide_color_gold
tide_git_color_stash $_tide_color_green
tide_git_color_untracked $_tide_color_light_blue
tide_git_color_upstream $_tide_color_green
tide_git_icon
tide_git_operation_color FF0000
tide_git_staged_color $_tide_color_gold
tide_git_stash_color $_tide_color_green
tide_git_untracked_color $_tide_color_light_blue
tide_git_upstream_color $_tide_color_green
tide_jobs_bg_color normal
tide_jobs_color $_tide_color_dark_green
tide_jobs_icon ''
tide_left_prompt_frame_enabled false
tide_left_prompt_item_separator_diff_color ' '
tide_left_prompt_item_separator_same_color ' '
tide_left_prompt_item_separator_same_color_color 949494
tide_left_prompt_items pwd git newline character
tide_left_prompt_prefix ''
tide_left_prompt_separator_diff_color ' '
tide_left_prompt_separator_same_color ' '
tide_left_prompt_suffix ' '
tide_nvm_bg_color normal
tide_nvm_color 00AFAF
@ -49,49 +48,49 @@ tide_php_bg_color normal
tide_php_color 875FFF
tide_php_icon ''
tide_prompt_add_newline_before true
tide_prompt_connection_icon ' '
tide_prompt_frame_and_connection_color 6C6C6C
tide_prompt_color_frame_and_connection 6C6C6C
tide_prompt_color_separator_same_color 949494
tide_prompt_icon_connection ' '
tide_prompt_pad_items false
tide_pwd_bg_color normal
tide_pwd_color_anchors $_tide_color_light_blue
tide_pwd_color_dirs $_tide_color_dark_blue
tide_pwd_color_truncated_dirs 8787AF
tide_pwd_dir_icon
tide_pwd_home_icon
tide_pwd_icon_dir
tide_pwd_icon_home
tide_pwd_icon_unwritable ''
tide_pwd_markers .bzr .citc .git .hg .node-version .python-version .ruby-version .shorten_folder_marker .svn .terraform Cargo.toml composer.json CVS go.mod package.json
tide_pwd_truncate_margin 10
tide_pwd_unwritable_icon ''
tide_right_prompt_frame_enabled false
tide_right_prompt_item_separator_diff_color ' '
tide_right_prompt_item_separator_same_color ' '
tide_right_prompt_item_separator_same_color_color 949494
tide_right_prompt_items status cmd_duration context jobs nvm virtual_env rustc php chruby
tide_right_prompt_prefix ' '
tide_right_prompt_separator_diff_color ' '
tide_right_prompt_separator_same_color ' '
tide_right_prompt_suffix ''
tide_rustc_bg_color normal
tide_rustc_color 00AFAF
tide_rustc_icon ''
tide_status_failure_bg_color normal
tide_status_failure_color D70000
tide_status_failure_icon '✘'
tide_status_success_bg_color normal
tide_status_success_color $_tide_color_dark_green
tide_status_success_icon '✔'
tide_status_bg_color_failure normal
tide_status_bg_color_success normal
tide_status_color_failure D70000
tide_status_color_success $_tide_color_dark_green
tide_status_icon_failure '✘'
tide_status_icon_success '✔'
tide_time_bg_color normal
tide_time_color 5F8787
tide_time_format '%T'
tide_vi_mode_default_bg_color
tide_vi_mode_default_color
tide_vi_mode_default_icon
tide_vi_mode_insert_bg_color
tide_vi_mode_insert_color
tide_vi_mode_insert_icon
tide_vi_mode_replace_bg_color
tide_vi_mode_replace_color
tide_vi_mode_replace_icon
tide_vi_mode_visual_bg_color
tide_vi_mode_visual_color
tide_vi_mode_visual_icon
tide_vi_mode_bg_color_default
tide_vi_mode_bg_color_insert
tide_vi_mode_bg_color_replace
tide_vi_mode_bg_color_visual
tide_vi_mode_color_default
tide_vi_mode_color_insert
tide_vi_mode_color_replace
tide_vi_mode_color_visual
tide_vi_mode_icon_default
tide_vi_mode_icon_insert
tide_vi_mode_icon_replace
tide_vi_mode_icon_visual
tide_virtual_env_bg_color normal
tide_virtual_env_color 00AFAF
tide_virtual_env_display_mode projectName

View File

@ -1,53 +1,52 @@
tide_character_bg_color normal
tide_character_failure_color brred
tide_character_success_color brgreen
tide_character_color_failure brred
tide_character_color_success brgreen
tide_chruby_bg_color normal
tide_chruby_color red
tide_cmd_duration_bg_color normal
tide_cmd_duration_color brblack
tide_context_bg_color normal
tide_context_default_color yellow
tide_context_root_color bryellow
tide_context_ssh_color yellow
tide_context_color_default yellow
tide_context_color_root bryellow
tide_context_color_ssh yellow
tide_git_bg_color normal
tide_git_branch_color brgreen
tide_git_conflicted_color brred
tide_git_dirty_color bryellow
tide_git_operation_color brred
tide_git_staged_color bryellow
tide_git_stash_color brgreen
tide_git_untracked_color brblue
tide_git_upstream_color brgreen
tide_git_color_branch brgreen
tide_git_color_conflicted brred
tide_git_color_dirty bryellow
tide_git_color_operation brred
tide_git_color_staged bryellow
tide_git_color_stash brgreen
tide_git_color_untracked brblue
tide_git_color_upstream brgreen
tide_jobs_bg_color normal
tide_jobs_color green
tide_left_prompt_item_separator_same_color_color brblack
tide_nvm_bg_color normal
tide_nvm_color cyan
tide_os_bg_color normal
tide_os_color brwhite
tide_php_bg_color normal
tide_php_color brmagenta
tide_prompt_frame_and_connection_color brblack
tide_prompt_color_frame_and_connection brblack
tide_prompt_color_separator_same_color brblack
tide_pwd_bg_color normal
tide_pwd_color_anchors brcyan
tide_pwd_color_dirs cyan
tide_pwd_color_truncated_dirs magenta
tide_right_prompt_item_separator_same_color_color brblack
tide_rustc_bg_color normal
tide_rustc_color cyan
tide_status_failure_bg_color normal
tide_status_failure_color red
tide_status_success_bg_color normal
tide_status_success_color green
tide_status_bg_color_failure normal
tide_status_bg_color_success normal
tide_status_color_failure red
tide_status_color_success green
tide_time_bg_color normal
tide_time_color brblack
tide_vi_mode_default_bg_color normal
tide_vi_mode_default_color green
tide_vi_mode_insert_bg_color normal
tide_vi_mode_insert_color
tide_vi_mode_replace_bg_color normal
tide_vi_mode_replace_color yellow
tide_vi_mode_visual_bg_color normal
tide_vi_mode_visual_color blue
tide_vi_mode_bg_color_default normal
tide_vi_mode_bg_color_insert normal
tide_vi_mode_bg_color_replace normal
tide_vi_mode_bg_color_visual normal
tide_vi_mode_color_default green
tide_vi_mode_color_insert
tide_vi_mode_color_replace yellow
tide_vi_mode_color_visual blue
tide_virtual_env_bg_color normal
tide_virtual_env_color cyan

View File

@ -1,11 +1,11 @@
tide_character_bg_color normal
tide_character_failure_color FF0000
tide_character_color_failure FF0000
tide_character_color_success $_tide_color_green
tide_character_icon ''
tide_character_success_color $_tide_color_green
tide_character_vi_default_icon ''
tide_character_vi_insert_icon ''
tide_character_vi_replace_icon '▶'
tide_character_vi_visual_icon V
tide_character_vi_icon_default ''
tide_character_vi_icon_insert ''
tide_character_vi_icon_replace '▶'
tide_character_vi_icon_visual V
tide_chruby_bg_color CC342D
tide_chruby_color white
tide_chruby_icon ''
@ -16,28 +16,27 @@ tide_cmd_duration_icon
tide_cmd_duration_threshold 3000
tide_context_always_display false
tide_context_bg_color 444444
tide_context_default_color D7AF87
tide_context_root_color $_tide_color_gold
tide_context_ssh_color D7AF87
tide_context_color_default D7AF87
tide_context_color_root_color $_tide_color_gold
tide_context_color_ssh D7AF87
tide_git_bg_color 4E9A06
tide_git_branch_color 000000
tide_git_conflicted_color 000000
tide_git_dirty_color 000000
tide_git_color_branch 000000
tide_git_color_conflicted 000000
tide_git_color_dirty 000000
tide_git_color_operation 000000
tide_git_color_staged 000000
tide_git_color_stash 000000
tide_git_color_untracked 000000
tide_git_color_upstream 000000
tide_git_icon
tide_git_operation_color 000000
tide_git_staged_color 000000
tide_git_stash_color 000000
tide_git_untracked_color 000000
tide_git_upstream_color 000000
tide_jobs_bg_color 444444
tide_jobs_color 4E9A06
tide_jobs_icon ''
tide_left_prompt_frame_enabled true
tide_left_prompt_item_separator_diff_color ''
tide_left_prompt_item_separator_same_color ''
tide_left_prompt_item_separator_same_color_color 949494
tide_left_prompt_items pwd git newline
tide_left_prompt_prefix ''
tide_left_prompt_separator_diff_color ''
tide_left_prompt_separator_same_color ''
tide_left_prompt_suffix ''
tide_nvm_bg_color 75507B
tide_nvm_color 2E3436
@ -49,49 +48,49 @@ tide_php_bg_color 75507B
tide_php_color 000000
tide_php_icon ''
tide_prompt_add_newline_before true
tide_prompt_connection_icon ' '
tide_prompt_frame_and_connection_color 6C6C6C
tide_prompt_color_frame_and_connection 6C6C6C
tide_prompt_color_separator_same_color 949494
tide_prompt_icon_connection ' '
tide_prompt_pad_items true
tide_pwd_bg_color 3465A4
tide_pwd_color_anchors E4E4E4
tide_pwd_color_dirs E4E4E4
tide_pwd_color_truncated_dirs BCBCBC
tide_pwd_dir_icon
tide_pwd_home_icon
tide_pwd_icon_dir
tide_pwd_icon_home
tide_pwd_icon_unwritable ''
tide_pwd_markers .bzr .citc .git .hg .node-version .python-version .ruby-version .shorten_folder_marker .svn .terraform Cargo.toml composer.json CVS go.mod package.json
tide_pwd_truncate_margin 10
tide_pwd_unwritable_icon ''
tide_right_prompt_frame_enabled true
tide_right_prompt_item_separator_diff_color ''
tide_right_prompt_item_separator_same_color ''
tide_right_prompt_item_separator_same_color_color 949494
tide_right_prompt_items status cmd_duration context jobs nvm virtual_env rustc php vi_mode chruby
tide_right_prompt_prefix ''
tide_right_prompt_separator_diff_color ''
tide_right_prompt_separator_same_color ''
tide_right_prompt_suffix ''
tide_rustc_bg_color FF8700
tide_rustc_color 2E3436
tide_rustc_icon ''
tide_status_failure_bg_color CC0000
tide_status_failure_color FFFF00
tide_status_failure_icon '✘'
tide_status_success_bg_color 2E3436
tide_status_success_color 4E9A06
tide_status_success_icon '✔'
tide_status_bg_color_failure CC0000
tide_status_bg_color_success 2E3436
tide_status_color_failure FFFF00
tide_status_color_success 4E9A06
tide_status_icon_failure '✘'
tide_status_icon_success '✔'
tide_time_bg_color D3D7CF
tide_time_color 000000
tide_time_format '%T'
tide_vi_mode_default_bg_color 008000
tide_vi_mode_default_color 000000
tide_vi_mode_default_icon DEFAULT
tide_vi_mode_insert_bg_color 444444
tide_vi_mode_insert_color
tide_vi_mode_insert_icon
tide_vi_mode_replace_bg_color 808000
tide_vi_mode_replace_color 000000
tide_vi_mode_replace_icon REPLACE
tide_vi_mode_visual_bg_color 000080
tide_vi_mode_visual_color 000000
tide_vi_mode_visual_icon VISUAL
tide_vi_mode_bg_color_default 008000
tide_vi_mode_bg_color_insert 444444
tide_vi_mode_bg_color_replace 808000
tide_vi_mode_bg_color_visual 000080
tide_vi_mode_color_default 000000
tide_vi_mode_color_insert
tide_vi_mode_color_replace 000000
tide_vi_mode_color_visual 000000
tide_vi_mode_icon_default DEFAULT
tide_vi_mode_icon_insert
tide_vi_mode_icon_replace REPLACE
tide_vi_mode_icon_visual VISUAL
tide_virtual_env_bg_color 444444
tide_virtual_env_color 00AFAF
tide_virtual_env_display_mode projectName

View File

@ -1,53 +1,52 @@
tide_character_bg_color normal
tide_character_failure_color brred
tide_character_success_color brgreen
tide_character_color_failure brred
tide_character_color_success brgreen
tide_chruby_bg_color red
tide_chruby_color black
tide_cmd_duration_bg_color yellow
tide_cmd_duration_color black
tide_context_bg_color brblack
tide_context_default_color yellow
tide_context_root_color yellow
tide_context_ssh_color yellow
tide_context_color_default yellow
tide_context_color_root yellow
tide_context_color_ssh yellow
tide_git_bg_color green
tide_git_branch_color black
tide_git_conflicted_color black
tide_git_dirty_color black
tide_git_operation_color black
tide_git_staged_color black
tide_git_stash_color black
tide_git_untracked_color black
tide_git_upstream_color black
tide_git_color_branch black
tide_git_color_conflicted black
tide_git_color_dirty black
tide_git_color_operation black
tide_git_color_staged black
tide_git_color_stash black
tide_git_color_untracked black
tide_git_color_upstream black
tide_jobs_bg_color brblack
tide_jobs_color green
tide_left_prompt_item_separator_same_color_color brblack
tide_nvm_bg_color magenta
tide_nvm_color black
tide_os_bg_color white
tide_os_color black
tide_php_bg_color magenta
tide_php_color black
tide_prompt_frame_and_connection_color brblack
tide_prompt_color_frame_and_connection brblack
tide_prompt_color_separator_same_color brblack
tide_pwd_bg_color blue
tide_pwd_color_anchors brwhite
tide_pwd_color_dirs brwhite
tide_pwd_color_truncated_dirs white
tide_right_prompt_item_separator_same_color_color brblack
tide_rustc_bg_color yellow
tide_rustc_color black
tide_status_failure_bg_color red
tide_status_failure_color bryellow
tide_status_success_bg_color black
tide_status_success_color green
tide_status_bg_color_failure red
tide_status_bg_color_success black
tide_status_color_failure bryellow
tide_status_color_success green
tide_time_bg_color white
tide_time_color black
tide_vi_mode_default_bg_color green
tide_vi_mode_default_color black
tide_vi_mode_insert_bg_color brblack
tide_vi_mode_insert_color
tide_vi_mode_replace_bg_color yellow
tide_vi_mode_replace_color black
tide_vi_mode_visual_bg_color blue
tide_vi_mode_visual_color black
tide_vi_mode_bg_color_default green
tide_vi_mode_bg_color_insert brblack
tide_vi_mode_bg_color_replace yellow
tide_vi_mode_bg_color_visual blue
tide_vi_mode_color_default black
tide_vi_mode_color_insert
tide_vi_mode_color_replace black
tide_vi_mode_color_visual black
tide_virtual_env_bg_color brblack
tide_virtual_env_color cyan

View File

@ -18,11 +18,11 @@ function _fake_tide_left_prompt
printf '%s' $fake_tide_left_prompt_prefix
end
else if test "$color" = "$previousColor"
set_color $fake_tide_left_prompt_item_separator_same_color_color
printf '%s' $fake_tide_left_prompt_item_separator_same_color
set_color $fake_tide_prompt_color_separator_same_color
printf '%s' $fake_tide_left_prompt_separator_same_color
else
set_color $previousColor -b $color
printf '%s' $fake_tide_left_prompt_item_separator_diff_color
printf '%s' $fake_tide_left_prompt_separator_diff_color
end
set_color -b $color

View File

@ -16,11 +16,10 @@ function _fake_tide_right_prompt
set_color $color -b normal
printf '%s' $fake_tide_right_prompt_prefix
else if test "$color" = "$previousColor"
set_color $fake_tide_right_prompt_item_separator_same_color_color
printf '%s' $fake_tide_right_prompt_item_separator_same_color
set_color $fake_ printf '%s' $fake_tide_right_prompt_separator_same_color
else
set_color $color -b $previousColor
printf '%s' $fake_tide_right_prompt_item_separator_diff_color
printf '%s' $fake_tide_right_prompt_separator_diff_color
end
set_color -b $color

View File

@ -22,8 +22,8 @@ function fake_prompt
set_color $fake_tide_prompt_connection_color
set -l decoloredTextLength (_tide_decolor "$leftPrompt[1]""$rightPrompt[1]" | string length)
test -n "$fake_tide_prompt_connection_icon" || set -l fake_tide_prompt_connection_icon ' '
string repeat --no-newline --max (math $fake_columns - $decoloredTextLength) $fake_tide_prompt_connection_icon
test -n "$fake_tide_prompt_icon_connection" || set -l fake_tide_prompt_icon_connection ' '
string repeat --no-newline --max (math $fake_columns - $decoloredTextLength) $fake_tide_prompt_icon_connection
printf '%s\n' $rightPrompt[1]
end

View File

@ -1,4 +1,4 @@
function _fake_tide_item_git
set_color $fake_tide_git_branch_color
set_color $fake_tide_git_color_branch
printf '%s' $fake_tide_git_icon' ' main
end

View File

@ -1,4 +1,4 @@
function _fake_tide_item_character
set_color $fake_tide_character_success_color
set_color $fake_tide_character_color_success
printf '%s ' ''
end

View File

@ -1,5 +1,5 @@
function _fake_tide_item_pwd
printf '%s' (set_color $fake_tide_pwd_color_dirs)$fake_tide_pwd_dir_icon' '
printf '%s' (set_color $fake_tide_pwd_color_dirs)$fake_tide_pwd_icon_dir' '
set_color -o $fake_tide_pwd_color_anchors
printf '%s' '~'

View File

@ -11,14 +11,14 @@ set COLUMNS 80
sudo mkdir -p ~/unwritable/dir # Uses sudo to make the dir unwritable
set -lx tide_pwd_unwritable_icon ''
set -lx tide_pwd_icon_unwritable ''
_pwd ~/unwritable # CHECK:  ~/unwritable
_pwd ~/unwritable/dir # CHECK:  ~/unwritable/dir
# No icon / directories
set -lx tide_pwd_unwritable_icon
set -lx tide_pwd_icon_unwritable
_pwd / # CHECK: /
_pwd /usr # CHECK: /usr

View File

@ -6,8 +6,8 @@ function _status
_tide_decolor (_tide_item_status)
end
set -lx tide_status_success_icon '✔'
set -lx tide_status_failure_icon '✘'
set -lx tide_status_icon_success '✔'
set -lx tide_status_icon_failure '✘'
# Without character
set -lx tide_left_prompt_items