10 lines
205 B
Plaintext
10 lines
205 B
Plaintext
|
#!/bin/sh
|
||
|
file="$1"
|
||
|
dest="$(find "$HOME" -maxdepth 5 -type d -not -path "$HOME/.*" | dmenu -i -p 'move to folder:')"
|
||
|
if ! [ -d "$dest" ]; then
|
||
|
mkdir -p "$dest"
|
||
|
fi
|
||
|
echo $dest
|
||
|
echo $file
|
||
|
mv "$file" "$dest"
|