mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 11:22:52 +08: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.
This commit is contained in:
parent
1166424eeb
commit
fd68aca6ea
|
@ -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 New Issue
Block a user