# async copy
function ac() {
unset ACOPY
unset AMOVE
export ACOPY=("${(@f)$(realpath -e $@)}")
}
# async move
function am() {
unset ACOPY
unset AMOVE
export AMOVE=("${(@f)$(realpath -e $@)}")
}
# async paste
function ap() {
if [ ! -z "$ACOPY" ]; then
cp -vr "${ACOPY[@]}" .
elif [ ! -z "$AMOVE" ]; then
mv -v "${AMOVE[@]}" .
unset AMOVE
else
>&2 echo "clipboard empty"
return 1
fi
}
-
Notifications
You must be signed in to change notification settings - Fork 0
oscargong/ZSH-Async-Copy-Move-and-Paste
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published