Created
March 26, 2026 12:59
-
-
Save makoru-hikage/757b32cd1e94b10437cd84e168a04c85 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Used in a Kitty Terminal with 256color enabled on an Hyprland-Archlinux setup | |
| # These use \[ \] so Bash knows they have zero physical width. | |
| C_WHT='\033[38;5;255m' # White (Monday) | |
| C_RED='\033[38;5;196m' # Red (Tuesday) | |
| C_BLU='\033[38;5;33m' # Blue (Wednesday) | |
| C_BRN='\033[38;5;130m' # Brown (Thursday) | |
| C_GLD='\033[38;5;220m' # Gold (Friday) | |
| C_GRN='\033[38;5;100m' # Earth/Greenish (Saturday) | |
| C_YLW='\033[38;5;229m' # Pale Yellow (Sunday) | |
| C_RST='\[\033[0m\]' # Reset color | |
| kanji_day() { | |
| local day=$(date +%u) | |
| local timestamp=$(date +"%Y-%m-%d %H:%M:%S") | |
| case $day in | |
| 1) echo -ne "月 $timestamp" ;; | |
| 2) echo -ne "火 $timestamp" ;; | |
| 3) echo -ne "水 $timestamp" ;; | |
| 4) echo -ne "木 $timestamp" ;; | |
| 5) echo -ne "金 $timestamp" ;; | |
| 6) echo -ne "土 $timestamp" ;; | |
| 7) echo -ne "日 $timestamp" ;; | |
| esac | |
| } | |
| kanji_day_color() { | |
| local day=$(date +%u) | |
| local timestamp=$(date +"%Y-%m-%d %H:%M:%S") | |
| case $day in | |
| 1) echo -ne "${C_WHT}" ;; | |
| 2) echo -ne "${C_RED}" ;; | |
| 3) echo -ne "${C_BLU}" ;; | |
| 4) echo -ne "${C_BRN}" ;; | |
| 5) echo -ne "${C_GLD}" ;; | |
| 6) echo -ne "${C_GRN}" ;; | |
| 7) echo -ne "${C_YLW}" ;; | |
| esac | |
| } | |
| export PS1=' \u:\W [\[$(kanji_day_color)\]$(kanji_day)'$C_RST']$(__git_ps1 " (\[\033[32m\]%s\[\033[0m\])")\$ ' | |
| export GIT_PS1_SHOWCOLORHINTS=1 | |
| if [ -f /usr/share/git/completion/git-prompt.sh ]; then | |
| . /usr/share/git/completion/git-prompt.sh | |
| fi | |
| if [ -f /usr/share/git/completion/git-completion.bash ]; then | |
| . /usr/share/git/completion/git-completion.bash | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment