Add zsh config

This commit is contained in:
2024-06-27 16:22:06 +02:00
parent c74a26cbee
commit a373c4aeb4
6 changed files with 135 additions and 0 deletions

View File

@ -0,0 +1 @@
alias dotfiles='/usr/bin/git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME"'

View File

@ -0,0 +1,18 @@
prompt_virtualenv() {
local env=""
if [[ -n "$CONDA_DEFAULT_ENV" ]]; then
env="%F{magenta}(conda:$CONDA_DEFAULT_ENV) "
elif [[ -n "$VIRTUAL_ENV" ]]; then
env="%F{magenta}(env:$VIRTUAL_ENV) "
fi
echo -n "$env"
}
PROMPT='%B%F{cyan}%n@%m%F{blue} :: %B%F{green}%3~ $(git_prompt_info)$(prompt_virtualenv)%B%F{blue}»%f%b '
RPS1='%(?..%F{red}%? ↵%f)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX=" %{$reset_color%}"