diff --git a/.local/bin/setup-dotfiles b/.local/bin/setup-dotfiles deleted file mode 100755 index edb68a7..0000000 --- a/.local/bin/setup-dotfiles +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/zsh - -printf "Experimental script! Run it anyway? (y/N) " -read choice -[ "$choice" = "y" ] || exit 1 - -[ ! $1 ] && >&2 echo "Usage: setup-dotfiles [PATH]" && exit 1 - -cd $1 || { >&2 echo "Invalid path" && exit 1 } - -git status 2>/dev/null || { >&2 echo "Directory is not a git directory!" && exit 1 } - -cat << EOF -#!/bin/zsh - -export DOTFILES="${PWD}" - -[ ! \$DOTFILES ] && unset DOTFILES -EOF - -echo "" -echo "##############################################################" -echo "# Please replace ~/.config/zsh/dotfiles with the code above. #" -echo "# TIPS: Run 'setup-dotfiles > ~/.config/zsh/dotfiles' #" -echo "##############################################################" diff --git a/README.md b/README.md index 8fa1059..f724b47 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +
@@ -30,7 +31,7 @@ My Setup: > [!WARNING] > This section is still WIP! -First time setup only: run `setup-dotfiles