mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
report machine name when SSH'd on a server
This commit is contained in:
parent
f8ba76e20d
commit
40cfd9ccae
1 changed files with 4 additions and 0 deletions
|
|
@ -1,4 +1,8 @@
|
||||||
|
|
||||||
PROMPT='%{$fg_no_bold[cyan]%}%n %{$fg_no_bold[yellow]%}%3~%{$reset_color%} %{$fg_no_bold[magenta]%}• %{$reset_color%}'
|
PROMPT='%{$fg_no_bold[cyan]%}%n %{$fg_no_bold[yellow]%}%3~%{$reset_color%} %{$fg_no_bold[magenta]%}• %{$reset_color%}'
|
||||||
|
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] || [ -n "$SSH_CONNECTION" ]; then
|
||||||
|
PROMPT="%{$fg[yellow]%}%m%{$reset_color%} $PROMPT"
|
||||||
|
fi
|
||||||
RPROMPT='$(git_prompt_info) %{$reset_color%}[%*]'
|
RPROMPT='$(git_prompt_info) %{$reset_color%}[%*]'
|
||||||
|
|
||||||
# git theming
|
# git theming
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue