diff options
author | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2015-10-16 07:01:12 +0800 |
---|---|---|
committer | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2015-10-16 07:01:12 +0800 |
commit | b776327b9dcaeac798b43c0f82f0a1b37545f57f (patch) | |
tree | 8eff1f8958941ef40f63a8b2a425c921de071b5a /share/functions/fish_fallback_prompt.fish | |
parent | b7e991c4b753248c90e7a8f6116e098a7f796728 (diff) |
Revert "prompts: more concise way of getting the hostname."
This reverts commit 233c4436943fb56edf6db44b932221107b37fad1.
See discussion in https://github.com/fish-shell/fish-shell/pull/2489
Diffstat (limited to 'share/functions/fish_fallback_prompt.fish')
-rw-r--r-- | share/functions/fish_fallback_prompt.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/fish_fallback_prompt.fish b/share/functions/fish_fallback_prompt.fish index 5c8d1584..ae4fa021 100644 --- a/share/functions/fish_fallback_prompt.fish +++ b/share/functions/fish_fallback_prompt.fish @@ -5,7 +5,7 @@ function fish_fallback_prompt --description "A simple fallback prompt without too much color or special characters for linux VTs" # Just calculate this once, to save a few cycles when displaying the prompt if not set -q __fish_prompt_hostname - set -g __fish_prompt_hostname (uname -n) + set -g __fish_prompt_hostname (hostname|cut -d . -f 1) end set -l color_cwd |