mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-06 03:10:35 +01:00
agnoster.zsh-theme: Support whitespace characters in username
By doing "$(whoami)" instead of `whoami`
This commit is contained in:
parent
96e4e5dd03
commit
d388912e10
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ prompt_end() {
|
||||||
|
|
||||||
# Context: user@hostname (who am I and where am I)
|
# Context: user@hostname (who am I and where am I)
|
||||||
prompt_context() {
|
prompt_context() {
|
||||||
local user=`whoami`
|
local user="$(whoami)"
|
||||||
|
|
||||||
if [[ "$user" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
|
if [[ "$user" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
|
||||||
prompt_segment black default "%(!.%{%F{yellow}%}.)$user@%m"
|
prompt_segment black default "%(!.%{%F{yellow}%}.)$user@%m"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue