mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-26 05:22:26 +03:00
Simplify uninstall
This commit is contained in:
parent
3f2ab29d28
commit
f0a809f2a0
@ -5,26 +5,17 @@ function _tide_sub_uninstall
|
|||||||
end
|
end
|
||||||
printf '%s\n' 'Uninstalling tide theme...'
|
printf '%s\n' 'Uninstalling tide theme...'
|
||||||
|
|
||||||
set -l fishPrompt (functions --details fish_prompt)
|
|
||||||
|
|
||||||
# ----------------------------------Remove Files----------------------------------
|
# ----------------------------------Remove Files----------------------------------
|
||||||
if test -e $_tide_dir
|
rm -r $_tide_dir
|
||||||
rm -r $_tide_dir
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
if test (functions --details --verbose fish_prompt)[5] = 'Created by tide configure'
|
if test (functions --details --verbose fish_prompt)[5] = 'Created by tide configure'
|
||||||
rm (functions --details fish_prompt)
|
rm (functions --details fish_prompt)
|
||||||
source "$__fish_data_dir/functions/fish_prompt.fish"
|
source "$__fish_data_dir/functions/fish_prompt.fish"
|
||||||
end
|
end
|
||||||
|
|
||||||
for func in (basename -s '.fish' $_tide_file_list)
|
functions -e $func (basename -s '.fish' $_tide_file_list)
|
||||||
functions -e $func
|
|
||||||
end
|
|
||||||
|
|
||||||
for file in $_tide_file_list
|
rm -f $__fish_config_dir/$_tide_file_list
|
||||||
rm -f "$__fish_config_dir/$file"
|
|
||||||
end
|
|
||||||
|
|
||||||
# -----------------------------Erase Theme Variables------------------------------
|
# -----------------------------Erase Theme Variables------------------------------
|
||||||
for var in $_tide_var_immutable_list $_tide_var_list
|
for var in $_tide_var_immutable_list $_tide_var_list
|
||||||
|
Loading…
Reference in New Issue
Block a user