1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2025-02-05 07:43:22 -08:00

add eashare command for convenience

This commit is contained in:
Connor Olding 2020-11-05 17:09:20 +01:00
parent 382746f7c7
commit fb5356deb2

View file

@ -187,6 +187,13 @@ baks() { # backup, timestamped
cp -p "$fp" "$bak" cp -p "$fp" "$bak"
} }
eashare() {
# NOTE: this only works on MSYS2 for now.
local dest="${1##*/}"
eaput "$1" || return 1
printf "%s" "$_REMOTE_DOMAIN/$_REMOTE_DIR/$dest" > /dev/clipboard
}
# sources {{{1 # sources {{{1
if [ $FANCY -eq 1 ]; then if [ $FANCY -eq 1 ]; then