Skip to content

Commit

Permalink
Revert "Move user@host to beginning of prompt (sindresorhus#530)"
Browse files Browse the repository at this point in the history
This reverts commit 0a92b02.

Does not make sense for me, sorry.
  • Loading branch information
Riatre committed Jun 8, 2020
1 parent 447b1f6 commit 4055956
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pure.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,6 @@ 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 @@ -155,6 +152,8 @@ 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 4055956

Please sign in to comment.