This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add to ~/.bashrc or ~/.zshrc | |
# Header prefix used in the clipboard so paste() knows the source dir | |
__FILECLIP_HDR="FILECLIPBOARD_CWD:" | |
copy() { | |
if [[ $# -eq 0 ]]; then | |
echo "Usage: copy <file(s)/dir(s)/glob(s)>" | |
return 1 | |
fi |