From e03ab6864ce834b689286a2e218e03d4c64e6dc6 Mon Sep 17 00:00:00 2001 From: Stanislav N Date: Sun, 15 Jan 2017 11:55:46 +0500 Subject: [PATCH] Prompt pztrn: force full hostname in prompt wuth `hostname -f`. --- zsh/prompts/pztrn.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zsh/prompts/pztrn.zsh b/zsh/prompts/pztrn.zsh index 4be6eba..0868146 100644 --- a/zsh/prompts/pztrn.zsh +++ b/zsh/prompts/pztrn.zsh @@ -46,7 +46,8 @@ prompt_pztrn_setup () { vars['usercolor']="%{$fg[blue]%}" fi - p_userpwd="$vars['brackets_start']$vars['usercolor']%n$reset_color@%{$fg[magenta]%}%M$vars['brackets_end']" + p_hostname=$(hostname -f) + p_userpwd="$vars['brackets_start']$vars['usercolor']%n$reset_color@%{$fg[magenta]%}$p_hostname$vars['brackets_end']" p_shlvlhist="$vars['brackets_start']$vars['default_color']%B%h%b$vars['brackets_end']" p_rc="%(?..$vars['brackets_start']$fg[red]%?%1v$vars['brackets_end'])"