From aac6ed75354674d3ea568d5ffe76edfd6f2268ff Mon Sep 17 00:00:00 2001 From: ronny abraham Date: Mon, 5 May 2025 23:30:24 +0300 Subject: [PATCH] change prompt-theme name to themes, added dircolors, changed prompt --- bin/install.sh | 14 ++++ bin/{prompt-theme.sh => prompt-themes.sh} | 0 dircolors/sunset | 78 +++++++++++++++++++++++ share/_config.yaml | 9 +-- 4 files changed, 97 insertions(+), 4 deletions(-) rename bin/{prompt-theme.sh => prompt-themes.sh} (100%) create mode 100644 dircolors/sunset diff --git a/bin/install.sh b/bin/install.sh index e383fbe..bfa2b03 100644 --- a/bin/install.sh +++ b/bin/install.sh @@ -9,6 +9,9 @@ TARGET_SCRIPT="$BIN_DIR/prompt-themes.sh" DEFAULT_CONFIG_SRC="$REPO_DIR/share/_config.yaml" DEFAULT_CONFIG_DEST="$CONFIG_DIR/config.yaml" +BASHRC="$HOME/.bashrc" +SOURCE_LINE='source "$HOME/bin/prompt-themes.sh"' + echo "🔧 Installing prompt-themes..." # Check for yq @@ -48,3 +51,14 @@ echo "✅ Symlink created: $TARGET_SCRIPT → $SCRIPT_PATH" echo "🚀 Done! To apply a theme, run:" echo " source ~/bin/prompt-themes.sh" + +# Add source line to ~/.bashrc if not already present + +if ! grep -Fxq "$SOURCE_LINE" "$BASHRC"; then + echo "$SOURCE_LINE" >> "$BASHRC" + echo "✅ Added to ~/.bashrc:" + echo " $SOURCE_LINE" +else + echo "â„šī¸ ~/.bashrc already sources prompt-themes.sh" +fi + diff --git a/bin/prompt-theme.sh b/bin/prompt-themes.sh similarity index 100% rename from bin/prompt-theme.sh rename to bin/prompt-themes.sh diff --git a/dircolors/sunset b/dircolors/sunset new file mode 100644 index 0000000..532b321 --- /dev/null +++ b/dircolors/sunset @@ -0,0 +1,78 @@ +# Configuration for LS_COLORS: Theme = sunset (Orange Spectrum) +TERM xterm-256color +RESET 0 + +# Directories and Links +DIR 01;38;5;214 # bright yellow-orange +LINK 01;38;5;209 # soft coral (close to username) +SYMLINK 01;38;5;209 +ORPHAN 01;38;5;196 # red for broken links + +# Executables and Permissions +EXEC 01;38;5;208 # same as username +SETUID 30;48;5;202 +SETGID 30;48;5;166 +STICKY_OTHER_WRITABLE 30;48;5;202 + +# Devices and Pipes +FIFO 38;5;172 # burnt orange pipe +SOCK 38;5;174 # coral-red socket +BLK 38;5;180 # light bone for block dev +CHR 38;5;180 + +# Archives +.tar 38;5;173 # warm beige +.tgz 38;5;173 +.zip 38;5;173 +.7z 38;5;173 +.rar 38;5;173 +.gz 38;5;173 +.bz2 38;5;173 +.xz 38;5;173 +.zst 38;5;173 + +# Text & Config Files +.txt 38;5;223 # parchment +.md 38;5;222 # pale golden +.conf 38;5;215 # sun-washed orange +.ini 38;5;215 +.yaml 38;5;215 +.yml 38;5;215 +.json 38;5;215 +.env 38;5;215 + +# Source Code +.py 38;5;214 # same as directory +.js 38;5;208 # same as username +.ts 38;5;208 +.sh 38;5;202 # same as Git branch +.bash 38;5;202 +.html 38;5;209 # link coral +.css 38;5;214 +.scss 38;5;214 +.java 38;5;215 +.cpp 38;5;215 +.c 38;5;215 +.go 38;5;180 +.rs 38;5;166 # deeper red-orange + +# Media Files +.jpg 38;5;174 # pink-coral +.jpeg 38;5;174 +.png 38;5;174 +.svg 38;5;174 +.gif 38;5;174 +.mp4 38;5;208 # username orange +.webm 38;5;208 +.mp3 38;5;214 # directory yellow +.wav 38;5;214 +.ogg 38;5;214 +.flac 38;5;214 + +# Backup & Temp +*~ 38;5;244 +.bak 38;5;244 +.swp 38;5;244 +.tmp 38;5;244 +.old 38;5;244 + diff --git a/share/_config.yaml b/share/_config.yaml index dde8676..91ca893 100644 --- a/share/_config.yaml +++ b/share/_config.yaml @@ -1,8 +1,9 @@ default: ayu-mirage prompts: - default: '\[\033[01;34m\]\u@\h \[\033[01;32m\]\w\[\033[00m\] \$ ' - bone: '\[\033[38;5;250m\]\u@\h \[\033[38;5;160m\]\w\[\033[0m\] \$ ' - nature: '\[\033[38;5;100m\]\u@\h \[\033[38;5;65m\]\w\[\033[0m\] \$ ' - ayu-mirage: '\[\033[38;5;179m\]\u@\h \[\033[38;5;110m\]\w\[\033[0m\] \$ ' + default: '\[\033[38;5;208m\]\u@\h \[\033[38;5;214m\]\w\[\033[38;5;202m\] $(parse_git_branch)\[\033[00m\] \$ ' + sunset: '\[\033[38;5;208m\]\u@\h \[\033[38;5;214m\]\w\[\033[38;5;202m\] $(parse_git_branch)\[\033[00m\] \$ ' + bone: '\[\033[38;5;250m\]\u@\h \[\033[38;5;252m\]\w\[\033[38;5;246m\] $(parse_git_branch)\[\033[00m\] \$ ' + nature: '\[\033[38;5;100m\]\u@\h \[\033[38;5;65m\]\w\[\033[38;5;58m\] $(parse_git_branch)\[\033[00m\] \$ ' + ayu-mirage: '\[\033[38;5;179m\]\u@\h \[\033[38;5;110m\]\w\[\033[38;5;131m\] $(parse_git_branch)\[\033[00m\] \$ '