mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-09 02:24:03 +01:00
Merge be1b403fc4 into c2ae9e09ca
This commit is contained in:
commit
4760b1a1d6
2 changed files with 26 additions and 0 deletions
17
plugins/virtualenv/virtualenv.plugin.zsh
Normal file
17
plugins/virtualenv/virtualenv.plugin.zsh
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
export VIRTUAL_ENV_DISABLE_PROMPT=1
|
||||||
|
|
||||||
|
ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX="("
|
||||||
|
ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX=")"
|
||||||
|
|
||||||
|
function virtualenv_prompt_info() {
|
||||||
|
if [ -n "$VIRTUAL_ENV" ]; then
|
||||||
|
if [ -f "$VIRTUAL_ENV/__name__" ]; then
|
||||||
|
local name=`cat $VIRTUAL_ENV/__name__`
|
||||||
|
elif [ `basename $VIRTUAL_ENV` = "__" ]; then
|
||||||
|
local name=$(basename $(dirname $VIRTUAL_ENV))
|
||||||
|
else
|
||||||
|
local name=$(basename $VIRTUAL_ENV)
|
||||||
|
fi
|
||||||
|
echo "$ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX$name$ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX"
|
||||||
|
fi
|
||||||
|
}
|
||||||
9
themes/seeker.zsh-theme
Normal file
9
themes/seeker.zsh-theme
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
PROMPT='╭ %{$fg_bold[red]%}➜ %{$fg_bold[green]%}%n@%M:%{$fg[cyan]%}%~ %{$fg_bold[blue]%}$(virtualenv_prompt_info)$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}
|
||||||
|
╰ ➤ '
|
||||||
|
|
||||||
|
ZSH_THEME_GIT_PROMPT_PREFIX="git:‹%{$fg[red]%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}› %{$fg[yellow]%}✗%{$reset_color%}"
|
||||||
|
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%}›"
|
||||||
|
ZSH_THEME_VIRTUAL_ENV_PROMPT_PREFIX="virtualenv:‹%{$fg[red]%}"
|
||||||
|
ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX="%{$fg[blue]%}› "
|
||||||
Loading…
Add table
Add a link
Reference in a new issue