mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 20:54:04 +08:00
90d52ee669
* Complete `/dev/fd` in `isatty` * Check `/dev/fd` existence first
10 lines
239 B
Fish
10 lines
239 B
Fish
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"
|