aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-01-11 18:34:28 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-01-11 18:34:28 +0300
commit9a6eb616d956529ec8f3e955d19008933cd66ad0 (patch)
tree4da115d6cc57a3f1bf5efc645e6c6cfa5e69d407
parent251ec93396411cbb3f791d0e941e1cb688168d14 (diff)
add precommand specs
-rw-r--r--internal/parse.zsh19
1 files changed, 17 insertions, 2 deletions
diff --git a/internal/parse.zsh b/internal/parse.zsh
index a551af32..3473f7f1 100644
--- a/internal/parse.zsh
+++ b/internal/parse.zsh
@@ -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=(
'&>' ''
'>' ''