enhance(pre-bootstrap): Shortcut
This commit is contained in:
parent
c0760597d2
commit
d01b860b75
2 changed files with 7 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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' #
|
||||||
########################################################################
|
########################################################################
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue