change prompt-theme name to themes, added dircolors, changed prompt
This commit is contained in:
parent
47f08d3bb1
commit
aac6ed7535
4 changed files with 97 additions and 4 deletions
|
|
@ -9,6 +9,9 @@ TARGET_SCRIPT="$BIN_DIR/prompt-themes.sh"
|
||||||
DEFAULT_CONFIG_SRC="$REPO_DIR/share/_config.yaml"
|
DEFAULT_CONFIG_SRC="$REPO_DIR/share/_config.yaml"
|
||||||
DEFAULT_CONFIG_DEST="$CONFIG_DIR/config.yaml"
|
DEFAULT_CONFIG_DEST="$CONFIG_DIR/config.yaml"
|
||||||
|
|
||||||
|
BASHRC="$HOME/.bashrc"
|
||||||
|
SOURCE_LINE='source "$HOME/bin/prompt-themes.sh"'
|
||||||
|
|
||||||
echo "🔧 Installing prompt-themes..."
|
echo "🔧 Installing prompt-themes..."
|
||||||
|
|
||||||
# Check for yq
|
# Check for yq
|
||||||
|
|
@ -48,3 +51,14 @@ echo "✅ Symlink created: $TARGET_SCRIPT → $SCRIPT_PATH"
|
||||||
|
|
||||||
echo "🚀 Done! To apply a theme, run:"
|
echo "🚀 Done! To apply a theme, run:"
|
||||||
echo " source ~/bin/prompt-themes.sh"
|
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
|
||||||
|
|
||||||
|
|
|
||||||
78
dircolors/sunset
Normal file
78
dircolors/sunset
Normal file
|
|
@ -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
|
||||||
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
default: ayu-mirage
|
default: ayu-mirage
|
||||||
|
|
||||||
prompts:
|
prompts:
|
||||||
default: '\[\033[01;34m\]\u@\h \[\033[01;32m\]\w\[\033[00m\] \$ '
|
default: '\[\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;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\] \$ '
|
|
||||||
|
|
||||||
|
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\] \$ '
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue