mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
hostname on ssh
This commit is contained in:
parent
5420070eac
commit
e17bd46961
1 changed files with 4 additions and 0 deletions
|
|
@ -55,6 +55,10 @@ function prompt_pwd() {
|
|||
prompt_build_simple() {
|
||||
__git_ps1_vars
|
||||
|
||||
if [[ -n $SSH_CLIENT ]]; then
|
||||
echo -n "${HOSTNAME%%.local} "
|
||||
fi
|
||||
|
||||
set_color -p green
|
||||
prompt_pwd
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue