mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-31 22:39:47 +08:00
parent
03460a3928
commit
9f0417b587
|
@ -1,8 +1,5 @@
|
||||||
|
# This function is typically bound to Alt-L, it is used to list the contents
|
||||||
#
|
# of the directory under the cursor.
|
||||||
# This function is bound to Alt-L, it is used to list the contents 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"
|
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 val (eval echo (commandline -t))
|
set val (eval echo (commandline -t))
|
||||||
|
@ -17,6 +14,13 @@ function __fish_list_current_token -d "List contents of token under the cursor i
|
||||||
ls
|
ls
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
set -l line_count (count (fish_prompt))
|
||||||
|
if test $line_count -gt 1
|
||||||
|
for x in (seq 2 $line_count)
|
||||||
|
printf "\n"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
commandline -f repaint
|
commandline -f repaint
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user