update name
This commit is contained in:
parent
2c6afe535f
commit
47f08d3bb1
2 changed files with 7 additions and 7 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue