From 32d82fba2c762efccb356c2a0b3e408068cc6e03 Mon Sep 17 00:00:00 2001 From: zachir Date: Tue, 23 May 2023 15:01:20 -0500 Subject: Total reorganization, we're moving on from X --- dr | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 dr (limited to 'dr') diff --git a/dr b/dr new file mode 100755 index 0000000..2c4eb71 --- /dev/null +++ b/dr @@ -0,0 +1,13 @@ +#!/bin/sh + +unset LINKNOTCOPY + +for i in "$@"; do + [ "$i" = "-l" ] && LINKNOTCOPY="y" +done + +if [ -n "$LINKNOTCOPY" ]; then + ln -sf $(dragon-drop -x -t | sed 's_^file://__') . +else + cp -rv $(dragon-drop -x -t | sed 's_^file://__') . +fi -- cgit v1.2.3