Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # copyfile
- copyfile() {
- local file="$1";
- local path="$PWD";
- echo $path/$file | xclip;
- }
- # pastfile
- pastefile() {
- local path="$PWD";
- local from=`xclip -o`;
- if [ -d $file ];
- then
- cp -R $from $path;
- fi;
- cp $from $path;
- }
- # movefile
- movefile() {
- local path="$PWD";
- local from=`xclip -o`;
- if [ -d $file ];
- then
- mv -R $from $path;
- fi;
- mv $from $path;
- }
Advertisement
Add Comment
Please, Sign In to add comment