tweak performance

This commit is contained in:
chrys 2016-10-03 19:21:14 +02:00
parent e7fb542980
commit 9a844faa5e

View File

@ -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