mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-18 01:21:33 +03:00
Minor edits
This commit is contained in:
parent
afbd202cbd
commit
7926ed2a7b
@ -2,7 +2,7 @@ function lean_pwd
|
||||
set -l pwdSplit (string split --no-empty "/" (_shorten_pwd))
|
||||
set -l pwdSplitLength (count $pwdSplit)
|
||||
|
||||
if test $pwdSplit[1] != "~"
|
||||
if test "$pwdSplit[1]" != "~"
|
||||
set_color $lean_color_dark_blue
|
||||
echo -n "/"
|
||||
set_color $fish_color_normal
|
||||
|
@ -6,7 +6,7 @@ function lean_uninstall
|
||||
rm -r "$__fish_config_dir/lean_theme"
|
||||
|
||||
set -l fishPromptFirstLine (head -n 1 "$__fish_config_dir/functions/fish_prompt.fish")
|
||||
if test $fishPromptFirstLine = "# Created by lean_wizard"
|
||||
if test "$fishPromptFirstLine" = "# Created by lean_wizard"
|
||||
rm "$__fish_config_dir/functions/fish_prompt.fish"
|
||||
end
|
||||
|
||||
|
@ -5,7 +5,7 @@ function lean_wizard
|
||||
end
|
||||
|
||||
set -g fishPrompt "$__fish_config_dir/functions/fish_prompt.fish"
|
||||
set -g tempPrompt "$__fish_config_dir/lean_theme/temp_prompt.fish"
|
||||
set -g fakePrompt "$__fish_config_dir/lean_theme/fake_prompt.fish"
|
||||
set -g columns $COLUMNS
|
||||
set -g lines $LINES
|
||||
|
||||
@ -156,16 +156,16 @@ end
|
||||
function _assemblePrompt -a whichPrompt
|
||||
set -g moduleDir "$__fish_config_dir/lean_theme/prompt_modules/$whichPrompt""_prompt"
|
||||
|
||||
if test $whichPrompt = "fish"
|
||||
set -g promptDir "$__fish_config_dir/functions/fish_prompt.fish"
|
||||
if test "$whichPrompt" = "fish"
|
||||
set -g promptDir $fishPrompt
|
||||
else
|
||||
set -g promptDir "$__fish_config_dir/lean_theme/temp_prompt.fish"
|
||||
set -g promptDir $fakePrompt
|
||||
end
|
||||
|
||||
echo -n >$promptDir
|
||||
|
||||
_addMod 1_initial
|
||||
if test $newline = "true"
|
||||
if test "$newline" = "true"
|
||||
_addMod 2_newline
|
||||
end
|
||||
_addMod "3_"$prompt_height"Line"
|
||||
|
Loading…
Reference in New Issue
Block a user