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.

13 lines
292 B

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