diff --git a/bin/install.sh b/bin/install.sh index d73f599..e383fbe 100644 --- a/bin/install.sh +++ b/bin/install.sh @@ -3,13 +3,13 @@ set -e REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" -CONFIG_DIR="$HOME/.config/prompt-theme" +CONFIG_DIR="$HOME/.config/prompt-themes" BIN_DIR="$HOME/bin" -TARGET_SCRIPT="$BIN_DIR/prompt-theme.sh" +TARGET_SCRIPT="$BIN_DIR/prompt-themes.sh" DEFAULT_CONFIG_SRC="$REPO_DIR/share/_config.yaml" DEFAULT_CONFIG_DEST="$CONFIG_DIR/config.yaml" -echo "🔧 Installing prompt-theme..." +echo "🔧 Installing prompt-themes..." # Check for yq if ! command -v yq >/dev/null 2>&1; then @@ -36,8 +36,8 @@ fi # Ensure bin dir exists mkdir -p "$BIN_DIR" -# Create symlink to prompt-theme.sh using absolute path -SCRIPT_PATH="$REPO_DIR/bin/prompt-theme.sh" +# Create symlink to prompt-themes.sh using absolute path +SCRIPT_PATH="$REPO_DIR/bin/prompt-themes.sh" if [[ -L "$TARGET_SCRIPT" || -f "$TARGET_SCRIPT" ]]; then rm "$TARGET_SCRIPT" @@ -47,4 +47,4 @@ ln -s "$SCRIPT_PATH" "$TARGET_SCRIPT" echo "✅ Symlink created: $TARGET_SCRIPT → $SCRIPT_PATH" echo "🚀 Done! To apply a theme, run:" -echo " source ~/bin/prompt-theme.sh" +echo " source ~/bin/prompt-themes.sh" diff --git a/bin/prompt-theme.sh b/bin/prompt-theme.sh index c675ae5..3a54d91 100755 --- a/bin/prompt-theme.sh +++ b/bin/prompt-theme.sh @@ -1,7 +1,7 @@ #!/bin/bash #config_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" -config_dir="$HOME/.config/prompt-theme" +config_dir="$HOME/.config/prompt-themes" config_file="$config_dir/config.yaml" shell_colors="$config_dir/dircolors"