From f8c73c795c67d88f85bcb004ec0cbb6259b7052d Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sun, 13 Mar 2016 17:57:53 -0400 Subject: [PATCH] fish: Avoid calling 'hostname' --- packages/fish/share-functions-fish_prompt.fish.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 packages/fish/share-functions-fish_prompt.fish.patch diff --git a/packages/fish/share-functions-fish_prompt.fish.patch b/packages/fish/share-functions-fish_prompt.fish.patch new file mode 100644 index 00000000..000cb36c --- /dev/null +++ b/packages/fish/share-functions-fish_prompt.fish.patch @@ -0,0 +1,15 @@ +Avoid calling 'hostname' which may not exist (and will probably +return "localhost" anyway"). + +diff -u -r ../fish-shell-master/share/functions/fish_prompt.fish ./share/functions/fish_prompt.fish +--- ../fish-shell-master/share/functions/fish_prompt.fish 2016-03-12 15:26:01.000000000 -0500 ++++ ./share/functions/fish_prompt.fish 2016-03-13 17:49:30.550445275 -0400 +@@ -5,7 +5,7 @@ + function fish_prompt --description "Write out the prompt" + # 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 "localhost" + end + + set -l color_cwd -- 2.11.0