mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Added support for "(ssh user@host)" when logged in via ssh.
This commit is contained in:
parent
f828c3ab59
commit
99b3eb5211
1 changed files with 8 additions and 1 deletions
|
|
@ -1,4 +1,11 @@
|
|||
PROMPT='%{$FG[238]%}%3~ \
|
||||
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%} '
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue