mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
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:
parent
7bf704fe87
commit
cf955c07fc
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue