mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Added remote conn
This commit is contained in:
parent
2af2629d12
commit
1f518ddf5e
1 changed files with 6 additions and 1 deletions
|
|
@ -1,8 +1,13 @@
|
||||||
local USER_HOST='%{$fg_bold[yellow]%}%n@%m%{$reset_color%}'
|
local USER_HOST='%{$fg_bold[yellow]%}%n@%m%{$reset_color%}'
|
||||||
local CURRENT_DIR=''
|
local CURRENT_DIR=''
|
||||||
local USER_HOST='%{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}%m%{$reset_color%}'
|
local USER_HOST='%{$fg[magenta]%}%n%{$reset_color%} at %{$fg[yellow]%}%m%{$reset_color%}'
|
||||||
|
REMOTE_CONN=''
|
||||||
|
|
||||||
PROMPT='[%{$fg_bold[yellow]%}%n@%m%{$reset_color%}%{$fg_bold[green]%} ${PWD/#$HOME/~}%{$reset_color%}$(git_prompt_info)%{$reset_color%}]%{$fg_bold[green]%}
|
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
|
||||||
|
REMOTE_CONN='%{$fg[magenta]%}✭%{$reset_color%} '
|
||||||
|
fi
|
||||||
|
|
||||||
|
PROMPT='[${REMOTE_CONN}%{$fg_bold[yellow]%}%n@%m%{$reset_color%}%{$fg_bold[green]%} ${PWD/#$HOME/~}%{$reset_color%}$(git_prompt_info)%{$reset_color%}]%{$fg_bold[green]%}
|
||||||
: %{$reset_color%}'
|
: %{$reset_color%}'
|
||||||
|
|
||||||
ZSH_THEME_GIT_PROMPT_PREFIX=" git(%{$fg[red]%}"
|
ZSH_THEME_GIT_PROMPT_PREFIX=" git(%{$fg[red]%}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue