From cf955c07fcb38d3e1270a66728d9026ff8e8a294 Mon Sep 17 00:00:00 2001 From: Axlefublr <101342105+Axlefublr@users.noreply.github.com> Date: Thu, 17 Aug 2023 04:05:59 +0800 Subject: [PATCH] fix __fish_list_current_token not recognizing ~ as $HOME (#9954) * fix __fish_list_current_token not recognizing ~ as $HOME * right. it was supposed to be $HOME. lol. (cherry picked from commit fd68aca6eabe3762baaa227640d0c9341e694527) --- share/functions/__fish_list_current_token.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_list_current_token.fish b/share/functions/__fish_list_current_token.fish index 1bfabd92f..59db6697f 100644 --- a/share/functions/__fish_list_current_token.fish +++ b/share/functions/__fish_list_current_token.fish @@ -2,7 +2,7 @@ # of the directory under the cursor. function __fish_list_current_token -d "List contents of token under the cursor if it is a directory, otherwise list the contents of the current directory" - set -l val (commandline -t) + set -l val (commandline -t | string replace -r '^~' "$HOME") printf "\n" if test -d $val ls $val