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
306 B

5 years ago
  1. #!/bin/sh
  2. # Move the path stored in ~/.yanked_file to the current working directory.
  3. # (See also: yank, put.)
  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 "moving '$unyank_path' to '$PWD'"
  10. mv "$unyank_path" . && rm ~/.yanked_file