update predefined strategies

This commit is contained in:
skywind3000 2018-03-07 17:11:12 +08:00
parent 04a8736841
commit 650aad5f08
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,7 @@ _zsh_autosuggest_predefined_generate() {
for p ("${(@s/:/)PATH}"); do for p ("${(@s/:/)PATH}"); do
[ ! -d "$p" ] && continue [ ! -d "$p" ] && continue
cd "$p" cd "$p"
local files=("${(@f)$(ls -la | awk -F ' ' '{print $9}')}") local files=($(command ls))
for fn in ${files}; do for fn in ${files}; do
if [ -x "$fn" ] && [[ "${fn:l}" != *.dll ]]; then if [ -x "$fn" ] && [[ "${fn:l}" != *.dll ]]; then
if [ -f "$fn" ] && [[ "${fn:l}" != *.nls ]]; then if [ -f "$fn" ] && [[ "${fn:l}" != *.nls ]]; then

View file

@ -604,7 +604,7 @@ _zsh_autosuggest_predefined_generate() {
for p ("${(@s/:/)PATH}"); do for p ("${(@s/:/)PATH}"); do
[ ! -d "$p" ] && continue [ ! -d "$p" ] && continue
cd "$p" cd "$p"
local files=("${(@f)$(ls -la | awk -F ' ' '{print $9}')}") local files=($(command ls))
for fn in ${files}; do for fn in ${files}; do
if [ -x "$fn" ] && [[ "${fn:l}" != *.dll ]]; then if [ -x "$fn" ] && [[ "${fn:l}" != *.dll ]]; then
if [ -f "$fn" ] && [[ "${fn:l}" != *.nls ]]; then if [ -f "$fn" ] && [[ "${fn:l}" != *.nls ]]; then