summaryrefslogtreecommitdiff
path: root/plugins/fastfile/fastfile.plugin.zsh
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2020-06-04 15:51:58 +0200
committerMarc Cornellà <marc.cornella@live.com>2020-06-04 15:51:58 +0200
commitbed0344627db7cd2bf2222e8424fde7f06fb088d (patch)
tree5200dc20ba7fdbabd9c60dab357b7e8177adace0 /plugins/fastfile/fastfile.plugin.zsh
parented4e317bbbd9966da2b4b85893c8d55c9ffbfd66 (diff)
parentf23e4912cffcdcf63a76ed2e5379a8af620096bf (diff)
downloadzsh-bed0344627db7cd2bf2222e8424fde7f06fb088d.tar.gz
zsh-bed0344627db7cd2bf2222e8424fde7f06fb088d.tar.bz2
zsh-bed0344627db7cd2bf2222e8424fde7f06fb088d.zip
Merge branch 'ohmyzsh/pull-7157' (#7157)
Closes #7157
Diffstat (limited to 'plugins/fastfile/fastfile.plugin.zsh')
-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 " " "_"`