diff options
| author | Anton Bobov <anton@bobov.name> | 2026-08-20 15:13:47 +0500 |
|---|---|---|
| committer | Anton Bobov <anton@bobov.name> | 2026-08-20 15:13:47 +0500 |
| commit | 153c9344e93662984b1a5368a2722c10117db830 (patch) | |
| tree | 46b44af16387c815ab6c783415ee7dc1b8287a5c /files/.config/nnn/plugins/organize | |
| parent | ccbc3e18f711c39482e9ed6045ed99b4da889a59 (diff) | |
nnn: update plugins
Diffstat (limited to 'files/.config/nnn/plugins/organize')
| -rwxr-xr-x | files/.config/nnn/plugins/organize | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/files/.config/nnn/plugins/organize b/files/.config/nnn/plugins/organize index fb70aaf..81cc9df 100755 --- a/files/.config/nnn/plugins/organize +++ b/files/.config/nnn/plugins/organize @@ -13,36 +13,36 @@ organize() { case "$(file -biL "$1")" in *video*) [ ! -d "Videos" ] && mkdir "Videos" - mv "$1" "Videos/$1" + mv -- "$1" "Videos/$1" printf "Moved %s to Videos\n" "$1" ;; *audio*) [ ! -d "Audio" ] && mkdir "Audio" - mv "$1" "Audio/$1" + mv -- "$1" "Audio/$1" printf "Moved %s to Audio\n" "$1" ;; *image*) [ ! -d "Images" ] && mkdir "Images" - mv "$1" "Images/$1" + mv -- "$1" "Images/$1" printf "Moved %s to Images\n" "$1" ;; *pdf*|*document*|*epub*|*djvu*|*cb*) [ ! -d "Documents" ] && mkdir "Documents" - mv "$1" "Documents/$1" + mv -- "$1" "Documents/$1" printf "Moved %s to Documents\n" "$1" ;; *text*) [ ! -d "Plaintext" ] && mkdir "Plaintext" - mv "$1" "Plaintext/$1" + mv -- "$1" "Plaintext/$1" printf "Moved %s to Plaintext\n" "$1" ;; *tar*|*xz*|*compress*|*7z*|*rar*|*zip*) [ ! -d "Archives" ] && mkdir "Archives" - mv "$1" "Archives/$1" + mv -- "$1" "Archives/$1" printf "Moved %s to Archives\n" "$1" ;; *binary*) [ ! -d "Binaries" ] && mkdir "Binaries" - mv "$1" "Binaries/$1" + mv -- "$1" "Binaries/$1" printf "Moved %s to Binaries\n" "$1" ;; esac } |
