Browse Source

Merge branch 'ohmyzsh/pull-7157' (#7157)

Closes #7157
Marc Cornellà 4 years ago
parent
commit
bed0344627
1 changed files with 2 additions and 2 deletions
  1. 2 2
      plugins/fastfile/fastfile.plugin.zsh

+ 2 - 2
plugins/fastfile/fastfile.plugin.zsh

@@ -78,7 +78,7 @@ function fastfile_print() {
 #    (=> fastfle_print) for each shortcut
 #
 function fastfile_ls() {
-    for f in "${fastfile_dir}"/*; do
+    for f in "${fastfile_dir}"/*(NF); do
         file=`basename "$f"` # To enable simpler handeling of spaces in file names
         varkey=`echo "$file" | tr " " "_"`
 
@@ -104,7 +104,7 @@ function fastfile_rm() {
 # Generate the aliases for the shortcuts
 #
 function fastfile_sync() {
-    for f in "${fastfile_dir}"/*(N); do
+    for f in "${fastfile_dir}"/*(NF); do
         file=`basename "$f"` # To enable simpler handeling of spaces in file names
         varkey=`echo "$file" | tr " " "_"`