From 7f509ac53394c99295c27ddc6ddbefc81b49fb4a Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Fri, 7 Feb 2020 18:37:05 +0100 Subject: [PATCH] added various functions for mounting android and copying data --- fish/functions/copy.fish | 4 ++++ fish/functions/mount-android.fish | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 fish/functions/copy.fish create mode 100644 fish/functions/mount-android.fish diff --git a/fish/functions/copy.fish b/fish/functions/copy.fish new file mode 100644 index 0000000..c16e0e3 --- /dev/null +++ b/fish/functions/copy.fish @@ -0,0 +1,4 @@ +# Defined in /tmp/fish.x8fmPB/copy.fish @ line 2 +function copy + bash -c "cp -r '$argv[1]' '$dest'; echo -e \\nCopy of '$argv[1]' complete" & +end diff --git a/fish/functions/mount-android.fish b/fish/functions/mount-android.fish new file mode 100644 index 0000000..77bc2d1 --- /dev/null +++ b/fish/functions/mount-android.fish @@ -0,0 +1,10 @@ +# Defined in /tmp/fish.UD1xYr/mount-android.fish @ line 2 +function mount-android + if test "$argv[1]" = '-u' + sudo fusermount -u /tmp/android + and echo "Unmounted android device" + else + mkdir -p /tmp/android + sudo jmtpfs -o allow_other,auto_unmount /tmp/android + end +end