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:
parent
382746f7c7
commit
fb5356deb2
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue