Skip to content

Commit

Permalink
Move user@host to beginning of prompt (sindresorhus#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanjsimon authored Feb 20, 2020
1 parent 30fa78f commit 0a92b02
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pure.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ prompt_pure_preprompt_render() {
# Initialize the preprompt array.
local -a preprompt_parts

# Username and machine, if applicable.
[[ -n $prompt_pure_state[username] ]] && preprompt_parts+=($prompt_pure_state[username])

# Set the path.
preprompt_parts+=('%F{${prompt_pure_colors[path]}}%~%f')

Expand All @@ -158,8 +161,6 @@ prompt_pure_preprompt_render() {
preprompt_parts+=('%F{$prompt_pure_colors[git:stash]}${PURE_GIT_STASH_SYMBOL:-≡}%f')
fi

# Username and machine, if applicable.
[[ -n $prompt_pure_state[username] ]] && preprompt_parts+=($prompt_pure_state[username])
# Execution time.
[[ -n $prompt_pure_cmd_exec_time ]] && preprompt_parts+=('%F{$prompt_pure_colors[execution_time]}${prompt_pure_cmd_exec_time}%f')

Expand Down

0 comments on commit 0a92b02

Please sign in to comment.