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 fd68aca6ea)
This commit is contained in:
Axlefublr 2023-08-17 04:05:59 +08:00 committed by Fabian Boehm
parent 7bf704fe87
commit cf955c07fc

View file

@ -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