mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Ask confirmation before uninstall
This commit is contained in:
parent
9c02f7513d
commit
42d1ae029c
1 changed files with 9 additions and 0 deletions
|
|
@ -1,3 +1,12 @@
|
|||
#!/bin/zsh
|
||||
|
||||
### Better prompt the user!
|
||||
echo -n "Are you sure to completely remove OH MY ZSH?"
|
||||
read "a? [type 'yes' to continue] "
|
||||
if [[ $a != "yes" ]]; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
echo "Removing ~/.oh-my-zsh"
|
||||
if [[ -d ~/.oh-my-zsh ]]
|
||||
then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue