Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
f23e4912
Commit
f23e4912
authored
Sep 25, 2018
by
Sumit Sahrawat
Committed by
Marc Cornellà
Jun 04, 2020
Browse files
Silence non-existent/empty dir errors in fastfile_{sync,ls}
parent
ed4e317b
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/fastfile/fastfile.plugin.zsh
View file @
f23e4912
...
@@ -78,7 +78,7 @@ function fastfile_print() {
...
@@ -78,7 +78,7 @@ function fastfile_print() {
# (=> fastfle_print) for each shortcut
# (=> fastfle_print) for each shortcut
#
#
function
fastfile_ls
()
{
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
file
=
`
basename
"
$f
"
`
# To enable simpler handeling of spaces in file names
varkey
=
`
echo
"
$file
"
|
tr
" "
"_"
`
varkey
=
`
echo
"
$file
"
|
tr
" "
"_"
`
...
@@ -104,7 +104,7 @@ function fastfile_rm() {
...
@@ -104,7 +104,7 @@ function fastfile_rm() {
# Generate the aliases for the shortcuts
# Generate the aliases for the shortcuts
#
#
function
fastfile_sync
()
{
function
fastfile_sync
()
{
for
f
in
"
${
fastfile_dir
}
"
/
*
(
N
)
;
do
for
f
in
"
${
fastfile_dir
}
"
/
*
(
N
F
)
;
do
file
=
`
basename
"
$f
"
`
# To enable simpler handeling of spaces in file names
file
=
`
basename
"
$f
"
`
# To enable simpler handeling of spaces in file names
varkey
=
`
echo
"
$file
"
|
tr
" "
"_"
`
varkey
=
`
echo
"
$file
"
|
tr
" "
"_"
`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment