tweak performance
This commit is contained in:
parent
e7fb542980
commit
9a844faa5e
@ -72,20 +72,22 @@ class command():
|
|||||||
return
|
return
|
||||||
|
|
||||||
# ignore bash buildins and empty
|
# 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']:
|
'mapfile','printf','read','readarray','source','type','typeset','ulimit','unalias']:
|
||||||
return
|
return
|
||||||
if currWord.startswith('-'):
|
if currWord[0] =='-':
|
||||||
return
|
return
|
||||||
if currWord.startswith('/'):
|
if currWord[0] == '/':
|
||||||
return
|
return
|
||||||
if currWord.startswith('#'):
|
if currWord[0] == '#':
|
||||||
return
|
return
|
||||||
if currWord.startswith('./'):
|
if currWord.startswith('./'):
|
||||||
return
|
return
|
||||||
if '@' in currWord and '.' in currWord:
|
if '@' in currWord and '.' in currWord:
|
||||||
return
|
return
|
||||||
if currWord.startswith('@'):
|
if currWord[0] == '@':
|
||||||
return
|
return
|
||||||
if currWord.isnumeric():
|
if currWord.isnumeric():
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user