fork/fish-shell

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

Yuntao Zhaofeat: improve completion for konsole (#10528)96416cc49

master
1.9 KiB34 linesraw
1# Completion for konsole
2
3complete -c konsole -f
4
5complete -c konsole -l help -xs h -d 'Show help and exit'
6complete -c konsole -l help-all -d 'Show all options and exit'
7complete -c konsole -l version -xs v -d 'Show version and exit'
8complete -c konsole -l author -d 'Show author info and exit'
9complete -c konsole -l license -d 'Show license info and exit'
10complete -c konsole -l desktopfile -d 'Base file name of desktop entry'
11complete -c konsole -l profile -d 'Name of profile to use' -xa "(konsole --list-profiles)"
12complete -c konsole -l layout -r -d 'json layoutfile to be loaded'
13complete -c konsole -l builtin-profile -d 'Use the built-in profile'
14complete -c konsole -l workdir -d 'Set initial working dir' -xa "(__fish_complete_directories)"
15complete -c konsole -l hold -l noclose -d 'Do not close when command exists'
16complete -c konsole -l new-tab -d 'Create a new tab'
17complete -c konsole -l tabs-from-file -r -d 'Create tabs from tabs config'
18complete -c konsole -l background-mode -d 'Start Konsole in the background'
19complete -c konsole -l separate -l nofork -d 'Run in a separate process'
20complete -c konsole -l show-menubar -d 'Show the menubar'
21complete -c konsole -l hide-menubar -d 'Hide the menubar'
22complete -c konsole -l show-tabbar -d 'Show the tabbar'
23complete -c konsole -l hide-tabbar -d 'Hide the tabbar'
24complete -c konsole -l fullscreen -d 'Start Konsole in fullscreen mode'
25complete -c konsole -l notransparency -d 'Disable transparent backgrounds'
26complete -c konsole -l list-profiles -d 'List the available profiles'
27complete -c konsole -l list-profile-properties -d 'List all the profile properties'
28complete -c konsole -s p -d '<P=V> Change profile property' -ra "(__konsole_profile_ops)"
29complete -c konsole -xs e -d '<CMD> Command to execute'
30complete -c konsole -l force-reuse -d 'Force re-using existing instance'
31
32function __konsole_profile_ops
33    konsole --list-profile-properties | string replace -fr '^(\S+) .*' '$1='
34end