···11+# fish-utils
22+33+A grab bag of tiny fish scripts and functions I've collected. They're small, but very handy On My Machine.
44+55+I name all my functions and scripts beginning with "," so that I can just type , and press TAB to get a list of all of my own personal functions. This isn't something I invented, but it is something I find handy.
66+77+## ,rmount
88+99+For [rclone](https://rclone.org/), it takes a remote and mounts it in ~/Remotes with the options I've found most useful.
1010+1111+```
1212+> ,rmount Jaromino:/home Jaromino
1313+[ silently mounts Jaromino at ~/Remote/Jaromino ]
1414+```
1515+1616+I use --volname to set the name of the volume on macOS, I'm not sure what this does on other systems.
1717+1818+## ,usage
1919+2020+Built on du, it scans the current working directory and spits out a report of the files/directories that take up the most space.
2121+2222+By default it does not search hidden files/directories that start with a dot. Feeding it the -a flag will scan everything.
2323+2424+```
2525+> ,usage -a Downloads
2626+ 97M Downloads/PistonCup.stl
2727+227M Downloads/Legacy-iOS-Kit_macos_v25.01.12
2828+4.4G Downloads/DVD_VR.dmg
2929+```
3030+3131+## ,upload
3232+3333+For [rclone](https://rclone.org/) again, it copies a file (displaying progress) from the local machine to a specific, hard-coded remote and produces a URL where that file can be accessed, both printed and copied to the clipboard.
3434+3535+```
3636+> ,upload
3737+Transferred: 1.201 MiB / 1.201 MiB, 100%, 1.201 MiB/s, ETA 0s
3838+Transferred: 1 / 1, 100%
3939+Elapsed time: 2.8s
4040+https://jaromino.com/Files/Zoodle%20Doing%20Outlining.mp4
4141+```
4242+4343+This one *is* definitely macOS-specific through `pbcopy`.