diff options
| author | ache <ache@ache.one> | 2026-03-07 11:38:56 +0100 |
|---|---|---|
| committer | ache <ache@ache.one> | 2026-03-07 11:40:31 +0100 |
| commit | 9fc4564533b4da19b5ecb0a3e00f853d3b35e9d6 (patch) | |
| tree | 17237017bbe39be48b6668b0015765830603edb2 /functions/fish_prompt.fish | |
| parent | fix: SSH kiten integration (diff) | |
fix: Bad redirection direction
Diffstat (limited to 'functions/fish_prompt.fish')
| -rw-r--r-- | functions/fish_prompt.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index 2594b95..5a76cb4 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -146,7 +146,7 @@ end function get_hostname -d "Set current hostname to prompt variable $HOSTNAME_PROMPT if connected via SSH or is root" set -g HOSTNAME_PROMPT "" if [ "$theme_hostname" = always -o \( "$theme_hostname" != never -a \( -n "$SSH_CLIENT" -o "$USER" = root \) \) ] - if type hostname 2</dev/null >/dev/null + if type hostname 2>/dev/null >/dev/null set -g HOSTNAME_PROMPT (hostname) else if type hostnamectl 2>/dev/null >/dev/null set -g HOSTNAME_PROMPT (hostnamectl hostname) |