mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-23 17:02:24 +03:00
Remove unnecessary brackets
This commit is contained in:
parent
e9baf3a1fc
commit
1f617dd61e
@ -15,6 +15,6 @@ function _tide_item_cmd_duration
|
||||
end
|
||||
|
||||
set_color $tide_cmd_duration_color
|
||||
printf '%s' {$hours}'h ' {$minutes}'m ' {$seconds}'s'
|
||||
printf '%s' $hours'h ' $minutes'm ' $seconds's'
|
||||
end
|
||||
end
|
||||
end
|
@ -5,6 +5,6 @@ function _tide_item_jobs
|
||||
end
|
||||
|
||||
set_color $tide_jobs_color
|
||||
printf '%s' $tide_jobs_icon ' '{$jobs_number}
|
||||
printf '%s' $tide_jobs_icon ' '$jobs_number
|
||||
end
|
||||
end
|
@ -5,7 +5,7 @@ function _tide_item_nvm
|
||||
if test -n "$tide_nvm_default_node"
|
||||
if test "$tide_nvm_default_node" != "$nodeVersion"
|
||||
set_color $tide_nvm_color
|
||||
printf '%s' {$tide_nvm_icon}' ' $nodeVersion
|
||||
printf '%s' $tide_nvm_icon' ' $nodeVersion
|
||||
end
|
||||
else if string match --quiet --regex "^$NVM_DIR.*" $whichNode # If node path begins with nvm directory
|
||||
set_color $tide_nvm_color
|
||||
|
@ -7,6 +7,6 @@ function _tide_item_rust
|
||||
end
|
||||
|
||||
set_color $tide_rust_color
|
||||
printf '%s' {$tide_rust_icon}' ' $rustVersion
|
||||
printf '%s' $tide_rust_icon' ' $rustVersion
|
||||
end
|
||||
end
|
@ -4,7 +4,7 @@ function _tide_item_status
|
||||
if test "$tide_status_always_display" = 'true'
|
||||
set -g tide_status_bg_color $tide_status_failure_bg_color
|
||||
set_color $tide_status_failure_color
|
||||
printf '%s' {$tide_status_failure_icon}' ' '1'
|
||||
printf '%s' $tide_status_failure_icon' ' '1'
|
||||
end
|
||||
return
|
||||
end
|
||||
@ -12,11 +12,11 @@ function _tide_item_status
|
||||
if test $_tide_last_status -eq 0
|
||||
set -g tide_status_bg_color $tide_status_success_bg_color
|
||||
set_color $tide_status_success_color
|
||||
printf '%s' {$tide_status_success_icon}' '
|
||||
printf '%s' $tide_status_success_icon' '
|
||||
else
|
||||
set -g tide_status_bg_color $tide_status_failure_bg_color
|
||||
set_color $tide_status_failure_color
|
||||
printf '%s' {$tide_status_failure_icon}' '
|
||||
printf '%s' $tide_status_failure_icon' '
|
||||
end
|
||||
|
||||
__fish_pipestatus_with_signal $_tide_last_pipestatus | string replace 'SIG' '' | string join '|'
|
||||
|
@ -32,11 +32,11 @@ function _tide_pwd --on-variable PWD --on-signal WINCH
|
||||
|
||||
# Prepend icons
|
||||
if not test -w $PWD
|
||||
set _tide_pwd_output $colorDirs{$tide_pwd_unwritable_icon}' ' $_tide_pwd_output
|
||||
set _tide_pwd_output $colorDirs$tide_pwd_unwritable_icon' ' $_tide_pwd_output
|
||||
else if test $PWD = $HOME
|
||||
set _tide_pwd_output $colorDirs{$tide_pwd_home_icon}' ' $_tide_pwd_output
|
||||
set _tide_pwd_output $colorDirs$tide_pwd_home_icon' ' $_tide_pwd_output
|
||||
else
|
||||
set _tide_pwd_output $colorDirs{$tide_pwd_dir_icon}' ' $_tide_pwd_output
|
||||
set _tide_pwd_output $colorDirs$tide_pwd_dir_icon' ' $_tide_pwd_output
|
||||
end
|
||||
|
||||
set -l truncatedList '.' $splitPwd
|
||||
|
Loading…
Reference in New Issue
Block a user