summaryrefslogtreecommitdiff
path: root/plugins/fastfile
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2020-07-04 11:54:44 -0600
committerTuowen Zhao <ztuowen@gmail.com>2020-07-04 11:54:44 -0600
commit59344b5c59b7190ad3b14a2e8e02db8b5559141b (patch)
treea8e7ede89d3b896967d7d18d071107bd06c77897 /plugins/fastfile
parenta3be2e4084285d7625e63bfe4b951c58143e3c9c (diff)
parenta15f0f0e9ff17c1ca5c6d694d732e72c7c03a62b (diff)
downloadzsh-59344b5c59b7190ad3b14a2e8e02db8b5559141b.tar.gz
zsh-59344b5c59b7190ad3b14a2e8e02db8b5559141b.tar.bz2
zsh-59344b5c59b7190ad3b14a2e8e02db8b5559141b.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'plugins/fastfile')
-rw-r--r--plugins/fastfile/fastfile.plugin.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/fastfile/fastfile.plugin.zsh b/plugins/fastfile/fastfile.plugin.zsh
index 0d71246fc..ccbbce3b2 100644
--- a/plugins/fastfile/fastfile.plugin.zsh
+++ b/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 " " "_"`