Merge branch 'gentoo-sway' of git.darkou.fr:dbroqua/home into gentoo-sway

This commit is contained in:
Damien Broqua 2021-07-02 08:22:55 +02:00
commit a470fa5b01
8 changed files with 66 additions and 8 deletions

View file

@ -6,6 +6,7 @@ alias ll="ls -l"
alias lh="ls -lah"
alias grep="grep --color=auto -n"
alias diff='diff --color=auto'
alias gdiff='git diff'
alias yarn="yarn --emoji true"
# No space in file

View file

@ -0,0 +1,17 @@
# Based on https://github.com/TyWR/Nord-zsh
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[white]%} on %{$fg_bold[yellow]%}\xee\x82\xa0 "
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$fg_bold[yellow]%}"
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$reset_color%}%{$fg_bold[red]%}*%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN=""
conda_env() {
if [ ! -z "$CONDA_PREFIX" ]
then
print -n " %{$fg_bold[white]%}on %{$fg_bold[blue]%}ꓛ ${CONDA_PREFIX##*/}%{$reset_color%}"
fi
}
PROMPT='
%{$fg_bold[green]%}%3c%{$reset_color%}$(git_prompt_info)$(conda_env)
%{$fg_bold[blue]%}${(%):-%m} ➜ %{$reset_color%}'