1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-09-21 19:10:08 +00:00

add precommand specs

This commit is contained in:
romkatv 2020-01-11 16:34:28 +01:00
parent 251ec93396
commit 9a6eb616d9

View file

@ -26,9 +26,8 @@ typeset -gA _p9k_skip_token=(
'end' ''
'coproc' ''
'nocorrect' ''
'noglob' ''
'time' ''
'-' ''
'builtin' '' # this is wrong as it will cause alias expansion
'[[' '\]\]'
'((' '\)\)'
'case' '\)|esac'
@ -52,6 +51,22 @@ typeset -gA _p9k_skip_token=(
'foreach' '\(*\)'
)
typeset -gA _p9k_precomands=(
'-' ''
'builtin' ''
'command' ''
'exec' '-[^a]#[a]'
'nohup' ''
'setsid' ''
'eatmydata' ''
'catchsegv' ''
'pkexec' '--user'
'doas' '-[^aCu]#[acU]'
'nice' '-[^n]#[n]|--adjustment'
'stdbuf' '-[^ioe]#[ioe]|--(input|output|error)'
'sudo' '-[^aghpuUCcrtT]#[aghpuUCcrtT]|--(close-from|group|host|prompt|role|type|other-user|command-timeout|user)'
)
typeset -gA _p9k_redirect=(
'&>' ''
'>' ''