add precommand specs

pull/436/head
romkatv 5 years ago
parent 251ec93396
commit 9a6eb616d9

@ -26,9 +26,8 @@ typeset -gA _p9k_skip_token=(
'end' '' 'end' ''
'coproc' '' 'coproc' ''
'nocorrect' '' 'nocorrect' ''
'noglob' ''
'time' '' 'time' ''
'-' ''
'builtin' '' # this is wrong as it will cause alias expansion
'[[' '\]\]' '[[' '\]\]'
'((' '\)\)' '((' '\)\)'
'case' '\)|esac' 'case' '\)|esac'
@ -52,6 +51,22 @@ typeset -gA _p9k_skip_token=(
'foreach' '\(*\)' '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=( typeset -gA _p9k_redirect=(
'&>' '' '&>' ''
'>' '' '>' ''

Loading…
Cancel
Save