#!/bin/sh
|
|
|
|
# Copy the path stored in ~/.yanked_file to the current working directory.
|
|
# (See also: yank, put-mv.)
|
|
|
|
if [ ! -e ~/.yanked_file ]; then
|
|
echo "no currently yanked file"
|
|
exit 66
|
|
fi
|
|
|
|
unyank_path=`cat ~/.yanked_file`
|
|
echo "copying '$unyank_path' to '$PWD'"
|
|
cp -r "$unyank_path" .
|