From e896acffd7dc12997b1dd44d852bab2eec1333b6 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Tue, 24 Mar 2015 17:03:40 -0700 Subject: Use $PWD instead of (pwd) in sample prompt This improves the case where the working directory has vanished Fixes #1857 --- share/tools/web_config/sample_prompts/informative.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share/tools') diff --git a/share/tools/web_config/sample_prompts/informative.fish b/share/tools/web_config/sample_prompts/informative.fish index b0bc601b..749d8171 100644 --- a/share/tools/web_config/sample_prompts/informative.fish +++ b/share/tools/web_config/sample_prompts/informative.fish @@ -45,7 +45,7 @@ if not set -q __fish_prompt_cwd set -g __fish_prompt_cwd (set_color $fish_color_cwd) end -printf '[%s] %s%s@%s %s%s %s(%s)%s \f\r> ' (date "+%H:%M:%S") "$__fish_color_blue" $USER $__fish_prompt_hostname "$__fish_prompt_cwd" (pwd) "$__fish_color_status" "$stat" "$__fish_prompt_normal" +printf '[%s] %s%s@%s %s%s %s(%s)%s \f\r> ' (date "+%H:%M:%S") "$__fish_color_blue" $USER $__fish_prompt_hostname "$__fish_prompt_cwd" "$PWD" "$__fish_color_status" "$stat" "$__fish_prompt_normal" end end -- cgit v1.2.3