Dotfiles, utilities, and other apparatus.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
281 B

#!/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