mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Merge 99b3eb5211 into 5667161d49
This commit is contained in:
commit
369466f96d
1 changed files with 18 additions and 0 deletions
18
themes/omh.zsh-theme
Normal file
18
themes/omh.zsh-theme
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
function ssh_connection() {
|
||||
if [[ -n $SSH_CONNECTION ]]; then
|
||||
echo "%{$fg_bold[red]%}(ssh %n@%m) "
|
||||
fi
|
||||
}
|
||||
|
||||
PROMPT='$(ssh_connection)\
|
||||
%{$FG[238]%}%3~ \
|
||||
$(git_prompt_info)\
|
||||
%{$fg[green]%}%(!.#.❯)\
|
||||
%{$reset_color%} '
|
||||
PROMPT2='%{$fg[red]%}\ %{$reset_color%}'
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$FG[237]%}(%{$FG[104]%}"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$FG[237]%}) %{$reset_color%}"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY="%{$FG[214]%} ✹%{$reset_color%}"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue