Compare commits

...

3 Commits

Author SHA1 Message Date
benzlokzik 6c14a41552
Merge 80cf7b1865 into 6e7ac0544e 2025-02-20 06:29:20 +01:00
tuzi3040 6e7ac0544e
fix(agnoster): print white text over black for light theme only (#12983) 2025-02-19 12:37:18 +01:00
benzlokzik 80cf7b1865 feat(uv): add alias for pinning Python version 2025-01-16 12:48:27 +03:00
3 changed files with 12 additions and 4 deletions

View File

@ -19,6 +19,7 @@ plugins=(... uv)
| uvlu | `uv lock --upgrade` | Lock the dependencies to the newest compatible versions | | uvlu | `uv lock --upgrade` | Lock the dependencies to the newest compatible versions |
| uvp | `uv pip` | Manage pip packages | | uvp | `uv pip` | Manage pip packages |
| uvpy | `uv python` | Manage Python installs | | uvpy | `uv python` | Manage Python installs |
| uvpp | `uv python pin` | Pin the current project to use a specific Python version |
| uvr | `uv run` | Run commands within the project's environment | | uvr | `uv run` | Run commands within the project's environment |
| uvrm | `uv remove` | Remove packages from the project | | uvrm | `uv remove` | Remove packages from the project |
| uvs | `uv sync` | Sync the environment with the lock file | | uvs | `uv sync` | Sync the environment with the lock file |

View File

@ -10,6 +10,7 @@ alias uvlr='uv lock --refresh'
alias uvlu='uv lock --upgrade' alias uvlu='uv lock --upgrade'
alias uvp='uv pip' alias uvp='uv pip'
alias uvpy='uv python' alias uvpy='uv python'
alias uvpp='uv python pin'
alias uvr='uv run' alias uvr='uv run'
alias uvrm='uv remove' alias uvrm='uv remove'
alias uvs='uv sync' alias uvs='uv sync'

View File

@ -35,8 +35,14 @@
CURRENT_BG='NONE' CURRENT_BG='NONE'
case ${SOLARIZED_THEME:-dark} in case ${SOLARIZED_THEME:-dark} in
light) CURRENT_FG='white';; light)
*) CURRENT_FG='black';; CURRENT_FG='white'
CURRENT_DEFAULT_FG='white'
;;
*)
CURRENT_FG='black'
CURRENT_DEFAULT_FG='default'
;;
esac esac
### Theme Configuration Initialization ### Theme Configuration Initialization
@ -48,7 +54,7 @@ esac
: ${AGNOSTER_DIR_BG:=blue} : ${AGNOSTER_DIR_BG:=blue}
# user@host # user@host
: ${AGNOSTER_CONTEXT_FG:=white} : ${AGNOSTER_CONTEXT_FG:=${CURRENT_DEFAULT_FG}}
: ${AGNOSTER_CONTEXT_BG:=black} : ${AGNOSTER_CONTEXT_BG:=black}
# Git related # Git related
@ -85,7 +91,7 @@ esac
: ${AGNOSTER_STATUS_RETVAL_FG:=red} : ${AGNOSTER_STATUS_RETVAL_FG:=red}
: ${AGNOSTER_STATUS_ROOT_FG:=yellow} : ${AGNOSTER_STATUS_ROOT_FG:=yellow}
: ${AGNOSTER_STATUS_JOB_FG:=cyan} : ${AGNOSTER_STATUS_JOB_FG:=cyan}
: ${AGNOSTER_STATUS_FG:=white} : ${AGNOSTER_STATUS_FG:=${CURRENT_DEFAULT_FG}}
: ${AGNOSTER_STATUS_BG:=black} : ${AGNOSTER_STATUS_BG:=black}
## Non-Color settings - set to 'true' to enable ## Non-Color settings - set to 'true' to enable