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) {