#!/bin/sh
|
|
|
|
# Move the path stored in ~/.yanked_file to the current working directory.
|
|
|
|
if [ ! -e ~/.yanked_file ]; then
|
|
echo "no currently yanked file"
|
|
exit 66
|
|
fi
|
|
|
|
unyank_path=`cat ~/.yanked_file`
|
|
echo "moving '$unyank_path' to '$PWD'"
|
|
mv "$unyank_path" . && rm ~/.yanked_file
|