mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-15 01:00:35 +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 pwdSplit (string split --no-empty "/" (_shorten_pwd))
|
||||||
set -l pwdSplitLength (count $pwdSplit)
|
set -l pwdSplitLength (count $pwdSplit)
|
||||||
|
|
||||||
if test $pwdSplit[1] != "~"
|
if test "$pwdSplit[1]" != "~"
|
||||||
set_color $lean_color_dark_blue
|
set_color $lean_color_dark_blue
|
||||||
echo -n "/"
|
echo -n "/"
|
||||||
set_color $fish_color_normal
|
set_color $fish_color_normal
|
||||||
|
@ -6,7 +6,7 @@ function lean_uninstall
|
|||||||
rm -r "$__fish_config_dir/lean_theme"
|
rm -r "$__fish_config_dir/lean_theme"
|
||||||
|
|
||||||
set -l fishPromptFirstLine (head -n 1 "$__fish_config_dir/functions/fish_prompt.fish")
|
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"
|
rm "$__fish_config_dir/functions/fish_prompt.fish"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ function lean_wizard
|
|||||||
end
|
end
|
||||||
|
|
||||||
set -g fishPrompt "$__fish_config_dir/functions/fish_prompt.fish"
|
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 columns $COLUMNS
|
||||||
set -g lines $LINES
|
set -g lines $LINES
|
||||||
|
|
||||||
@ -156,16 +156,16 @@ end
|
|||||||
function _assemblePrompt -a whichPrompt
|
function _assemblePrompt -a whichPrompt
|
||||||
set -g moduleDir "$__fish_config_dir/lean_theme/prompt_modules/$whichPrompt""_prompt"
|
set -g moduleDir "$__fish_config_dir/lean_theme/prompt_modules/$whichPrompt""_prompt"
|
||||||
|
|
||||||
if test $whichPrompt = "fish"
|
if test "$whichPrompt" = "fish"
|
||||||
set -g promptDir "$__fish_config_dir/functions/fish_prompt.fish"
|
set -g promptDir $fishPrompt
|
||||||
else
|
else
|
||||||
set -g promptDir "$__fish_config_dir/lean_theme/temp_prompt.fish"
|
set -g promptDir $fakePrompt
|
||||||
end
|
end
|
||||||
|
|
||||||
echo -n >$promptDir
|
echo -n >$promptDir
|
||||||
|
|
||||||
_addMod 1_initial
|
_addMod 1_initial
|
||||||
if test $newline = "true"
|
if test "$newline" = "true"
|
||||||
_addMod 2_newline
|
_addMod 2_newline
|
||||||
end
|
end
|
||||||
_addMod "3_"$prompt_height"Line"
|
_addMod "3_"$prompt_height"Line"
|
||||||
|
Loading…
Reference in New Issue
Block a user