fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Mathis ChenuetAdd completion for pstree (#10317)73d760560

master
1.5 KiB22 linesraw
1complete -c pstree -f
2complete -c pstree -s a -l arguments -d 'Show command line arguments'
3complete -c pstree -s A -l ascii -d 'use ASCII line drawing characters'
4complete -c pstree -s c -l compact -d 'don\'t compact identical subtrees'
5complete -c pstree -s h -l highlight-all -d 'highlight current process and its ancestors'
6complete -c pstree -s H -l highlight-pid -d 'highlight this process and its ancestors' -a '(__fish_complete_pids)'
7complete -c pstree -s g -l show-pgids -d 'show process group ids; implies -c'
8complete -c pstree -s G -l vt100 -d 'use VT100 line drawing characters'
9complete -c pstree -s l -l long -d 'don\'t truncate long lines'
10complete -c pstree -s n -l numeric-sort -d 'sort output by PID'
11complete -c pstree -s N -l ns-sort -d 'sort by namespace type' -xa 'cgroup ipc mnt net pid user uts'
12complete -c pstree -s p -l show-pids -d 'show PIDs; implies -c'
13complete -c pstree -s s -l show-parents -d 'show parents of the selected process'
14complete -c pstree -s S -l ns-changes -d 'show namespace transitions'
15complete -c pstree -s t -l thread-names -d 'show full thread names'
16complete -c pstree -s T -l hide-threads -d 'hide threads, show only processes'
17complete -c pstree -s u -l uid-changes -d 'show uid transitions'
18complete -c pstree -s U -l unicode -d 'use UTF-8 line drawing characters'
19complete -c pstree -s V -l version -d 'display version information'
20complete -c pstree -s Z -l security-context -d 'show SELinux security contexts'
21complete -c pstree -a '(__fish_complete_pids)' -d PID
22complete -c pstree -a '(__fish_complete_users)' -d USER