aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/fish_fallback_prompt.fish
diff options
context:
space:
mode:
authorGravatar Michael Fogleman <michaelwfogleman@gmail.com>2015-10-14 09:04:18 -0400
committerGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2015-10-15 11:59:39 +0800
commit233c4436943fb56edf6db44b932221107b37fad1 (patch)
tree2078a8f62a6641ea64521ce2cc798f46c743a478 /share/functions/fish_fallback_prompt.fish
parent35bbc1d7b797892a5c673ea1eedfaa8887f6efa2 (diff)
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 ae4fa021..5c8d1584 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 (hostname|cut -d . -f 1)
+ set -g __fish_prompt_hostname (uname -n)
end
set -l color_cwd