From 0d4f80115091da033d8e893023924b9c24766ab3 Mon Sep 17 00:00:00 2001 From: lowne Date: Sat, 31 Jul 2021 13:29:01 +0200 Subject: [PATCH] fix pwd_info (possibly typo?) --- functions/pwd_info.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/pwd_info.fish b/functions/pwd_info.fish index 69fdca0..b5f06fc 100644 --- a/functions/pwd_info.fish +++ b/functions/pwd_info.fish @@ -1,6 +1,6 @@ function pwd_info -a separator -d "Print easy-to-parse information the current working directory" set -l home ~ - set -l git_root (command git rev-parse --show-toplevel ^ /dev/null) + set -l git_root (command git rev-parse --show-toplevel 2> /dev/null) command pwd -P | awk -v home="$home" -v git_root="$git_root" -v separator="$separator" -v dir_length="$fish_prompt_pwd_dir_length" ' function base(string) {