Skip to content

Commit

Permalink
verify the Trash directory exists before moving files there (#1918)
Browse files Browse the repository at this point in the history
* verify the Trash directory exists before moving files there

* Update etc/lfrc.example

Co-authored-by: Joe Lim <[email protected]>

---------

Co-authored-by: Joe Lim <[email protected]>
  • Loading branch information
valoq and joelim-work authored Feb 18, 2025
1 parent c42942d commit b087bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion etc/lfrc.example
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ map a :push %mkdir<space>

# move current file or selected files to trash folder
# (also see 'man mv' for backup/overwrite options)
cmd trash %set -f; mv $fx ~/.trash
cmd trash %set -f; mv -t ~/.trash $fx

# define a custom 'delete' command
# cmd delete ${{
Expand Down

0 comments on commit b087bf7

Please sign in to comment.