chore: Rename setup-dotfiles -> pre-bootstrap

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

View file

@ -1,26 +0,0 @@
#!/bin/zsh
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!";
>&2 echo "Please 'cd' to the dotfiles directory before running the script.";
exit 1;
}
info="""
########################################################################
# Please replace '~/.config/zsh/include/dotfiles' with the code above. #
########################################################################
"""
echo "#!/bin/zsh"
echo $info
echo """export ZI_DOTFILES="${PWD}"
[ ! \$ZI_DOTFILES ] && unset ZI_DOTFILES"""
echo $info