aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/fish_fallback_prompt.fish
diff options
context:
space:
mode:
authorGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2015-10-16 07:01:12 +0800
committerGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2015-10-16 07:01:12 +0800
commitb776327b9dcaeac798b43c0f82f0a1b37545f57f (patch)
tree8eff1f8958941ef40f63a8b2a425c921de071b5a /share/functions/fish_fallback_prompt.fish
parentb7e991c4b753248c90e7a8f6116e098a7f796728 (diff)
Revert "prompts: more concise way of getting the hostname."
Diffstat (limited to 'share/functions/fish_fallback_prompt.fish')
-rw-r--r--share/functions/fish_fallback_prompt.fish2
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