Skip to content

iaindooley/pickdrop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hi, I made this shell script so that I could
pick up files as I wander about on the command
line and then drop them in the same location.

I thought you might like it, too. In order to
install and use:

git clone https://github.com/iaindooley/pickdrop.git &&
cd pickdrop &&
chmod +x install.sh &&
./install.sh

then you can cruise around and do:

pick filename1 filename2
cd otherdir
pick otherfile
... etc ...

cd /home
mkdir central && cd central
drop

It's not robust at all - it stores your picks
in ~/.pick until you call drop at which time it
uses the file paths in ~/.pick to create a new
executable ~/.drop file to copy each of the
files you picked to the current working
directory.

Thanks to André Paramés Pereira for the patch
to run multiple files at once.

git user erickworking added this gist:

https://gist.github.com/833140

"It allows multiple file selection and running
arbitrary commands. The string {} is replaced
by the file name in run (e.g. "run cp -v {} ."
copies all the files to the current directory)."

Thanks to andresp on reddit for strengthening
the script so it won't break with special chars
or spaces, and also making it more efficient!

About

A unix shell script which allows you to "pick" files one at a time and then drop them in one place

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages