enhance(pre-bootstrap): Shortcut

This commit is contained in:
Ahmad Ansori Palembani 2024-05-18 14:08:37 +07:00
parent c0760597d2
commit d01b860b75
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
2 changed files with 7 additions and 4 deletions

View file

@ -31,7 +31,7 @@ My Setup:
> [!WARNING] > [!WARNING]
> This section is still WIP! > This section is still WIP!
First time setup only: run `./pre-bootstrap` then follow the instruction. First time setup only: run `./pre-bootstrap` then follow the instruction. (Or run `./pre-bootstrap - > ~/.config/zsh/include/dotfiles`)
## Recommended Project/Software ## Recommended Project/Software
- TBSM - TBSM

View file

@ -1,8 +1,10 @@
#!/bin/zsh #!/bin/zsh
printf "Experimental script! Run it anyway? (y/N) " [ "$1" = "-" ] || {
read choice printf "Experimental script! Run it anyway? (y/N) ";
[ "$choice" = "y" ] || exit 1 read choice;
[ "$choice" = "y" ] || exit 1;
}
[ "$(cat README.md | head -n 1)" = "<!-- ZI-DOTFILES -->" ] || { [ "$(cat README.md | head -n 1)" = "<!-- ZI-DOTFILES -->" ] || {
>&2 echo "Current working directory is not the dotfiles is located!"; >&2 echo "Current working directory is not the dotfiles is located!";
@ -13,6 +15,7 @@ read choice
info=""" info="""
######################################################################## ########################################################################
# Please replace '~/.config/zsh/include/dotfiles' with the code above. # # Please replace '~/.config/zsh/include/dotfiles' with the code above. #
# TIPS: Run './pre-bootstrap - > ~/.config/zsh/include/dotfiles' #
######################################################################## ########################################################################
""" """