Compare commits
2 commits
03a2ee8b96
...
fc3aa2cc82
Author | SHA1 | Date | |
---|---|---|---|
|
fc3aa2cc82 | ||
|
4b07250729 |
2 changed files with 21 additions and 0 deletions
|
@ -7,6 +7,10 @@ if [ $? = 1 ] ; then
|
||||||
git checkout dev
|
git checkout dev
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $? = 1 ] ; then
|
||||||
|
git checkout master
|
||||||
|
fi
|
||||||
|
|
||||||
# Get last changes
|
# Get last changes
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
|
|
17
dotfiles/.oh-my-zsh/custom/themes/tywr.zsh-theme
Normal file
17
dotfiles/.oh-my-zsh/custom/themes/tywr.zsh-theme
Normal 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%}'
|
Loading…
Reference in a new issue