mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 13:34:40 +08:00
Complete /dev/fd
in isatty
(#8840)
* Complete `/dev/fd` in `isatty` * Check `/dev/fd` existence first
This commit is contained in:
parent
820f8bc1af
commit
90d52ee669
@ -1 +1,9 @@
|
||||
complete -c isatty -x -k -a "stdin stdout stderr"
|
||||
complete -c isatty -x
|
||||
|
||||
if test -d /dev/fd
|
||||
complete -c isatty -k -a "(string replace /dev/fd/ '' /dev/fd/*)"
|
||||
end
|
||||
|
||||
complete -c isatty -k -a "stderr" -d "2"
|
||||
complete -c isatty -k -a "stdout" -d "1"
|
||||
complete -c isatty -k -a "stdin" -d "0"
|
||||
|
Loading…
x
Reference in New Issue
Block a user