tweak performance
This commit is contained in:
parent
e7fb542980
commit
9a844faa5e
@ -72,20 +72,22 @@ class command():
|
||||
return
|
||||
|
||||
# ignore bash buildins and empty
|
||||
if currWord in ['','cd','fg','bg','alias','bind','dir','caller','buildin','command','declare','echo','enable','help','let','local','logout',\
|
||||
if currWord[0] =='':
|
||||
return
|
||||
if currWord in ['cd','fg','bg','alias','bind','dir','caller','buildin','command','declare','echo','enable','help','let','local','logout',\
|
||||
'mapfile','printf','read','readarray','source','type','typeset','ulimit','unalias']:
|
||||
return
|
||||
if currWord.startswith('-'):
|
||||
if currWord[0] =='-':
|
||||
return
|
||||
if currWord.startswith('/'):
|
||||
if currWord[0] == '/':
|
||||
return
|
||||
if currWord.startswith('#'):
|
||||
if currWord[0] == '#':
|
||||
return
|
||||
if currWord.startswith('./'):
|
||||
return
|
||||
if '@' in currWord and '.' in currWord:
|
||||
return
|
||||
if currWord.startswith('@'):
|
||||
if currWord[0] == '@':
|
||||
return
|
||||
if currWord.isnumeric():
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user