chiark / gitweb /
tcl: Update from 8.6.5 to 8.6.6
[termux-packages] / packages / fish / share-functions-fish_prompt.fish.patch
1 Avoid calling 'hostname' which may not exist (and will probably
2 return "localhost" anyway").
3
4 diff -u -r ../fish-shell-master/share/functions/fish_prompt.fish ./share/functions/fish_prompt.fish
5 --- ../fish-shell-master/share/functions/fish_prompt.fish       2016-03-12 15:26:01.000000000 -0500
6 +++ ./share/functions/fish_prompt.fish  2016-03-13 17:49:30.550445275 -0400
7 @@ -5,7 +5,7 @@
8  function fish_prompt --description "Write out the prompt"
9         # Just calculate this once, to save a few cycles when displaying the prompt
10         if not set -q __fish_prompt_hostname
11 -               set -g __fish_prompt_hostname (hostname|cut -d . -f 1)
12 +               set -g __fish_prompt_hostname "localhost"
13         end
14  
15         set -l color_cwd