2020-04-13 01:40:49 +03:00
|
|
|
function lean_uninstall
|
2020-04-17 07:20:58 +03:00
|
|
|
if lean_user_ask "Unininstall lean theme?" y/N
|
2020-04-15 03:52:21 +03:00
|
|
|
echo "Uninstalling lean theme..."
|
2020-04-13 01:40:49 +03:00
|
|
|
|
2020-04-16 11:09:07 +03:00
|
|
|
# ------------------Remove Functions------------------
|
2020-04-17 07:31:45 +03:00
|
|
|
rm "$__fish_config_dir/functions/fish_prompt.fish"
|
2020-04-17 07:20:58 +03:00
|
|
|
rm "$__fish_config_dir/functions/lean*"
|
2020-04-13 01:40:49 +03:00
|
|
|
|
2020-04-15 03:52:21 +03:00
|
|
|
# ---------------Erase Theme Variables---------------
|
2020-04-21 06:35:56 +03:00
|
|
|
# --------------Prompt--------------
|
|
|
|
set -l vars $vars lean_prompt_connection lean_prompt_connection_color
|
2020-04-15 03:52:21 +03:00
|
|
|
# --------------Colors--------------
|
2020-04-20 19:38:41 +03:00
|
|
|
set -l vars $vars lean_color_green lean_color_light_blue lean_color_dark_blue lean_color_gold
|
|
|
|
# --------------Timer--------------
|
|
|
|
set -l vars $vars lean_timer_color lean_timer_decimals lean_timer_duration
|
2020-04-15 03:52:21 +03:00
|
|
|
# ---------------Pwd---------------
|
2020-04-16 12:15:34 +03:00
|
|
|
set -l vars $vars fish_prompt_pwd_dir_length lean_shorten_pwd_margin
|
2020-04-15 03:52:21 +03:00
|
|
|
# ------------Git prompt------------
|
2020-04-16 12:15:34 +03:00
|
|
|
set -l vars $vars __fish_git_prompt_show_informative_status __fish_git_prompt_showstashstate
|
2020-04-15 03:52:21 +03:00
|
|
|
# -------Symbols-------
|
2020-04-16 12:15:34 +03:00
|
|
|
set -l vars $vars __fish_git_prompt_char_stateseparator __fish_git_prompt_char_cleanstate
|
|
|
|
set -l vars $vars __fish_git_prompt_char_upstream_ahead __fish_git_prompt_char_upstream_behind
|
|
|
|
set -l vars $vars __fish_git_prompt_char_stagedstate __fish_git_prompt_char_dirtystate
|
|
|
|
set -l vars $vars __fish_git_prompt_char_untrackedfiles __fish_git_prompt_char_stashstate
|
2020-04-15 03:52:21 +03:00
|
|
|
# --------Colors--------
|
2020-04-16 12:15:34 +03:00
|
|
|
set -l vars $vars __fish_git_prompt_color_branch __fish_git_prompt_color_upstream
|
|
|
|
set -l vars $vars __fish_git_prompt_color_stagedstate __fish_git_prompt_color_dirtystate
|
|
|
|
set -l vars $vars __fish_git_prompt_color_untrackedfiles __fish_git_prompt_color_stashstate
|
2020-04-13 02:58:24 +03:00
|
|
|
|
2020-04-15 03:52:21 +03:00
|
|
|
for var in $vars
|
|
|
|
set -e $var
|
2020-04-13 02:58:24 +03:00
|
|
|
end
|
2020-04-15 03:52:21 +03:00
|
|
|
|
|
|
|
echo "Lean theme uninstalled. Exiting fish."
|
|
|
|
sleep 1
|
|
|
|
exit
|
|
|
|
else
|
|
|
|
echo "Aborted uninstall."
|
2020-04-13 02:58:24 +03:00
|
|
|
end
|
|
|
|
end
|