mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-23 17:02:24 +03:00
Add lean_uninstall function
This commit is contained in:
parent
16edc7f2b8
commit
e3264edc27
34
functions/lean_uninstall.fish
Normal file
34
functions/lean_uninstall.fish
Normal file
@ -0,0 +1,34 @@
|
||||
function lean_uninstall
|
||||
echo "Uninstalling lean theme..."
|
||||
|
||||
# ------------------Remove Functions------------------
|
||||
set fns fish_prompt lean_pwd lean_git_prompt lean_uninstall
|
||||
set fishFnsDir "$__fish_config_dir/functions"
|
||||
|
||||
for fn in $fns
|
||||
rm "$fishFnsDir/$fn.fish"
|
||||
end
|
||||
|
||||
# ---------------Erase Theme Variables---------------
|
||||
# --------------Colors--------------
|
||||
set vars $vars lean_green lean_light_blue lean_dark_blue lean_gold
|
||||
# ---------------Pwd---------------
|
||||
set vars $vars fish_prompt_pwd_dir_length lean_shorten_pwd_margin
|
||||
# ------------Git prompt------------
|
||||
set vars $vars __fish_git_prompt_show_informative_status __fish_git_prompt_showstashstate
|
||||
# -------Symbols-------
|
||||
set vars $vars __fish_git_prompt_char_stateseparator __fish_git_prompt_char_cleanstate
|
||||
set vars $vars __fish_git_prompt_char_upstream_ahead __fish_git_prompt_char_upstream_behind
|
||||
set vars $vars __fish_git_prompt_char_stagedstate __fish_git_prompt_char_dirtystate
|
||||
set vars $vars __fish_git_prompt_char_untrackedfiles __fish_git_prompt_char_stashstate
|
||||
# --------Colors--------
|
||||
set vars $vars __fish_git_prompt_color_branch __fish_git_prompt_color_upstream
|
||||
set vars $vars __fish_git_prompt_color_stagedstate __fish_git_prompt_color_dirtystate
|
||||
set vars $vars __fish_git_prompt_color_untrackedfiles __fish_git_prompt_color_stashstate
|
||||
|
||||
for var in $vars
|
||||
set -e $var
|
||||
end
|
||||
|
||||
echo "Lean theme uninstalled! Restart fish to see your new prompt."
|
||||
end
|
@ -1,12 +1,12 @@
|
||||
echo "Installing lean theme..."
|
||||
|
||||
# -------------------Download Functions-------------------
|
||||
set fns fish_prompt lean_pwd lean_git_prompt
|
||||
# -----------------Download Functions-----------------
|
||||
set fns fish_prompt lean_pwd lean_git_prompt lean_uninstall
|
||||
set fishFnsDir "$__fish_config_dir/functions"
|
||||
set ghubFnsDir "https://raw.githubusercontent.com/IlanCosman/lean/master/functions"
|
||||
|
||||
for fn in $fns
|
||||
wget -q -P $fishFnsDir "$ghubFnsDir/$fn.fish"
|
||||
wget --quiet "$ghubFnsDir/$fn.fish" --output-document="$fishFnsDir/$fn.fish"
|
||||
end
|
||||
|
||||
# ----------------Set Theme Variables----------------
|
||||
|
Loading…
Reference in New Issue
Block a user