mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-04-24 21:56:54 +08:00
uninstall will rm update.sh
This commit is contained in:
parent
754a26f1bf
commit
7a2977a9e0
|
@ -217,6 +217,11 @@ install_update(){
|
||||||
${dotfile_path}/update.sh
|
${dotfile_path}/update.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uninstall_update(){
|
||||||
|
fmt_note "removing update.sh ..."
|
||||||
|
rm "${dotfile_path}/update.sh"
|
||||||
|
}
|
||||||
|
|
||||||
install(){
|
install(){
|
||||||
install_update
|
install_update
|
||||||
install_crontab
|
install_crontab
|
||||||
|
@ -234,6 +239,7 @@ install(){
|
||||||
uninstall(){
|
uninstall(){
|
||||||
ask_for_yN "do you really want to uninstall?"
|
ask_for_yN "do you really want to uninstall?"
|
||||||
if [[ $? == 1 ]]; then
|
if [[ $? == 1 ]]; then
|
||||||
|
uninstall_update
|
||||||
uninstall_crontab
|
uninstall_crontab
|
||||||
delete_if_exist "${HOME}/.zshrc" "source ${dotfile_home_path}/.zshrc2"
|
delete_if_exist "${HOME}/.zshrc" "source ${dotfile_home_path}/.zshrc2"
|
||||||
delete_if_exist "${HOME}/.tmux.conf" "source-file ${dotfile_home_path}/.tmux.conf2"
|
delete_if_exist "${HOME}/.tmux.conf" "source-file ${dotfile_home_path}/.tmux.conf2"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user