enhance(pre-bootstrap): Shortcut
This commit is contained in:
parent
c0760597d2
commit
d01b860b75
2 changed files with 7 additions and 4 deletions
|
@ -1,8 +1,10 @@
|
|||
#!/bin/zsh
|
||||
|
||||
printf "Experimental script! Run it anyway? (y/N) "
|
||||
read choice
|
||||
[ "$choice" = "y" ] || exit 1
|
||||
[ "$1" = "-" ] || {
|
||||
printf "Experimental script! Run it anyway? (y/N) ";
|
||||
read choice;
|
||||
[ "$choice" = "y" ] || exit 1;
|
||||
}
|
||||
|
||||
[ "$(cat README.md | head -n 1)" = "<!-- ZI-DOTFILES -->" ] || {
|
||||
>&2 echo "Current working directory is not the dotfiles is located!";
|
||||
|
@ -13,6 +15,7 @@ read choice
|
|||
info="""
|
||||
########################################################################
|
||||
# Please replace '~/.config/zsh/include/dotfiles' with the code above. #
|
||||
# TIPS: Run './pre-bootstrap - > ~/.config/zsh/include/dotfiles' #
|
||||
########################################################################
|
||||
"""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue