[completions] Add completions for pidof

[ci skip]
This commit is contained in:
Mahmoud Al-Qudsi 2020-10-30 11:15:24 -05:00
parent 5a0bc0a516
commit 3471db51c8

View 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)'