added various functions for mounting android and copying data

This commit is contained in:
Anton Lydike 2020-02-07 18:37:05 +01:00
parent e40f488757
commit 7f509ac533
2 changed files with 14 additions and 0 deletions

4
fish/functions/copy.fish Normal file
View File

@ -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

View File

@ -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