mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
[completions] Add completions for pidof
[ci skip]
This commit is contained in:
parent
5a0bc0a516
commit
3471db51c8
1 changed files with 10 additions and 0 deletions
10
share/completions/pidof.fish
Normal file
10
share/completions/pidof.fish
Normal file
|
@ -0,0 +1,10 @@
|
|||
complete -c pidof -s s -d "Single shot: return only one PID"
|
||||
complete -c pidof -s c -d "Only return processes w/ same root directory"
|
||||
complete -c pidof -s n -d "Avoid stat(2) for binaries on NFS shares"
|
||||
complete -c pidof -s x -d "Include PIDs of shell scripts matching name"
|
||||
|
||||
# Dynamically complete all PIDs + special variable %PPID for parent process
|
||||
complete -c pidof -s o -d "Exclude processes with PID" -xa '%PPID\t"Parent process, i.e. fish" (__fish_complete_pids)'
|
||||
|
||||
# Dynamically complete all running processes
|
||||
complete -c pidof -xa '(__fish_complete_proc)'
|
Loading…
Reference in a new issue