Skip to content

Commit

Permalink
Always show user/host
Browse files Browse the repository at this point in the history
  • Loading branch information
camthompson committed Mar 17, 2017
1 parent 48740b6 commit 257f7ff
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions zsh/func/prompt_cet_setup
Expand Up @@ -21,16 +21,6 @@ function prompt_cam_precmd {
prompt_cam_pwd

git-info

prompt_host_info
}

function prompt_host_info {
if [[ -n $SSH_CLIENT ]]; then
_prompt_host_info='%F{yellow}%n%b%f@%F{green}%m%b%f:'
else
_prompt_host_info=''
fi
}

function prompt_cam_setup {
Expand Down Expand Up @@ -62,7 +52,7 @@ function prompt_cam_setup {
'prompt' "%A%B%S%a%d%m%r%U%u $(coalesce "%b" "%p" "%c")%s"

# Define prompts.
PROMPT='${_prompt_host_info}'
PROMPT='%F{yellow}%n%b%f@%F{green}%m%b%f:'
PROMPT+='%F{blue}${_prompt_cam_pwd}'
PROMPT+='${editor_info[keymap]} %f%b'
RPROMPT='${git_info[prompt]}%f%b'
Expand Down

0 comments on commit 257f7ff

Please sign in to comment.