diff options
author | 2025-01-03 03:48:55 +0100 | |
---|---|---|
committer | 2025-01-03 03:48:55 +0100 | |
commit | 8a501492dedf44b0e763a2f9ff2f42bb4bd52b7a (patch) | |
tree | 1156b7c0d2ea45a46381624a67146ae54135ab69 /install.zsh | |
parent | a5498aa320124153be5caa59d61c13e4e6357595 (diff) | |
download | zuwu-8a501492dedf44b0e763a2f9ff2f42bb4bd52b7a.tar.gz zuwu-8a501492dedf44b0e763a2f9ff2f42bb4bd52b7a.tar.bz2 zuwu-8a501492dedf44b0e763a2f9ff2f42bb4bd52b7a.tar.lz zuwu-8a501492dedf44b0e763a2f9ff2f42bb4bd52b7a.zip |
fix: comments
Diffstat (limited to 'install.zsh')
-rwxr-xr-x | install.zsh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/install.zsh b/install.zsh index edcf501..c0dcd94 100755 --- a/install.zsh +++ b/install.zsh @@ -21,22 +21,22 @@ if [[ "$(basename "$__filename")" == "zsh" ]]; then else cp -r "$__dirname/zuwu.zsh" "$TARGET/zuwu.zsh" fi -<<EOF2 > "$TARGET/setup.zsh" +<<EOF_SETUPSCRIPT > "$TARGET/setup.zsh" #!/usr/bin/env zsh if [[ -f "\$HOME/.zshrc" ]]; then local NEWZSHRC="\$HOME/.zshrc.\$(date -u +%Y-%m-%dT%H:%M:%S%Z)" echo -e "\x1b[0;33mExitsing zshrc found, moving to \x1b[0;34m\$NEWZSHRC\x1b[0m" mv "\$HOME/.zshrc" "\$NEWZSHRC" fi -<<EOF > "\$HOME/.zshrc" +<<EOF_ZSHRC > "\$HOME/.zshrc" for d in /usr/share/zsh/plugins/zuwu /usr/local/share/zsh/plugins/zuwu \\\$HOME/.local/share/zsh/plugins/zuwu; do if [[ -d "\\\$d" ]]; then source "\\\$d/zuwu.zsh" fi done -EOF +EOF_ZSHRC echo -e "\x1b[0;32mPlease run \x1b[0;34msource \$HOME/.zshrc\x1b[0;32m to finish installing zuwu.\x1b[0m" -EOF2 +EOF_SETUPSCRIPT chmod +x "$TARGET/setup.zsh" if [[ "$_ZUWU_INSTALLED" != "1" ]]; then echo -e "\x1b[0;32mPlease run \x1b[0;34m$TARGET/setup.zsh\x1b[0;32m to install zuwu for the current user.\x1b[0m" |