diff options
| author | duckyriley <[email protected]> | 2026-11-23 21:21:22 +0800 |
|---|---|---|
| committer | duckyriley <[email protected]> | 2026-11-23 21:21:22 +0800 |
| commit | 9ef7ba021629c9fa3e111798c61b35a02dfaae20 (patch) | |
| tree | 599fad203f9588be81eb71a79dd57a67e6c01b26 /assets/shell.bash | |
| parent | d5901ef3de6c3c8c60e7aca7610ab5eb2d4bbaa5 (diff) | |
| download | ducky-9ef7ba021629c9fa3e111798c61b35a02dfaae20.tar.gz ducky-9ef7ba021629c9fa3e111798c61b35a02dfaae20.zip | |
Fix inactive tab closing and add Lua shortcut actions and themes
Diffstat (limited to 'assets/shell.bash')
| -rw-r--r-- | assets/shell.bash | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/assets/shell.bash b/assets/shell.bash index d36d1e5..fc4404b 100644 --- a/assets/shell.bash +++ b/assets/shell.bash @@ -3,12 +3,12 @@ _ducky_prompt() { local status=$? branch branch=$(git symbolic-ref --quiet --short HEAD 2>/dev/null) || branch='' - PS1=$'\n\[\e[38;2;196;167;231m\]╭─ ' - PS1+='\[\e[38;2;222;215;232m\]\w' + PS1=$'\n\[\e[35m\]╭─ ' + PS1+='\[\e[0m\]\w' _ducky_branch=$branch - [[ -n $branch ]] && PS1+=' \[\e[38;2;151;213;207m\]⎇ ${_ducky_branch}' - [[ $status -ne 0 ]] && PS1+=" \[\e[38;2;235;139;156m\]${status}" - PS1+=$'\n\[\e[38;2;196;167;231m\]╰─❯ \[\e[0m\]' + [[ -n $branch ]] && PS1+=' \[\e[36m\]⎇ ${_ducky_branch}' + [[ $status -ne 0 ]] && PS1+=" \[\e[31m\]${status}" + PS1+=$'\n\[\e[35m\]╰─❯ \[\e[0m\]' } # Keep other prompt hooks, then set Ducky's prompt last. if declare -p PROMPT_COMMAND 2>/dev/null | grep -q 'declare -a'; then |