···11+function ,rmount --wraps='rclone mount' --description 'mounts the given rclone remote (plus path) at the given name in the ~/Remotes/ folder'
22+ mkdir -p "$HOME/Remote/$argv[2]"
33+ rclone mount --daemon --vfs-cache-mode=full --vfs-fast-fingerprint --volname "$argv[2]" "$argv[1]" "$HOME/Remote/$argv[2]"
44+end
+10
,upload.fish
···11+function ,upload --wraps='rclone copy' --description 'Upload files to jaromino.com'
22+ set file (basename "$argv")
33+ set file (string escape --style=url "$file")
44+ rclone copy "$argv" Jaromino:/home/public/jaromino.com/Files/ -P --ignore-existing
55+ or return $status
66+77+ set url (printf "https://jaromino.com/Files/%s" "$file")
88+ echo "$url" | pbcopy
99+ printf "%s\n" "$url"
1010+end
+25
,usage.fish
···11+function ,usage --wraps=du --description 'get disk usage of current working directory'
22+ argparse 'a/all' 'h/help' -- $argv
33+ if set -ql _flag_h
44+ echo "Usage: ,usage [-h | --help] [-a | -all] [directory]"
55+ echo " -h Print this help"
66+ echo " -a Scan all files and folders (including hidden ones)"
77+ echo ""
88+ echo "If no directory is provided, the current directory is assumed"
99+ return
1010+ end
1111+1212+ set path "."
1313+ if test -n "$argv"
1414+ set path "$argv"
1515+ end
1616+1717+ set paths "$path"/*
1818+1919+ if set -ql _flag_a
2020+ set -a paths "$path"/.*
2121+ end
2222+2323+ du -hs $paths | sort -h
2424+2525+end