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