Grab bag of random fish scripts and functions I've collected
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Create README.md

authored by

Different55 and committed by
GitHub
7bc5de6d c54e8845

+43
+43
README.md
··· 1 + # fish-utils 2 + 3 + A grab bag of tiny fish scripts and functions I've collected. They're small, but very handy On My Machine. 4 + 5 + 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. 6 + 7 + ## ,rmount 8 + 9 + For [rclone](https://rclone.org/), it takes a remote and mounts it in ~/Remotes with the options I've found most useful. 10 + 11 + ``` 12 + > ,rmount Jaromino:/home Jaromino 13 + [ silently mounts Jaromino at ~/Remote/Jaromino ] 14 + ``` 15 + 16 + I use --volname to set the name of the volume on macOS, I'm not sure what this does on other systems. 17 + 18 + ## ,usage 19 + 20 + Built on du, it scans the current working directory and spits out a report of the files/directories that take up the most space. 21 + 22 + By default it does not search hidden files/directories that start with a dot. Feeding it the -a flag will scan everything. 23 + 24 + ``` 25 + > ,usage -a Downloads 26 + 97M Downloads/PistonCup.stl 27 + 227M Downloads/Legacy-iOS-Kit_macos_v25.01.12 28 + 4.4G Downloads/DVD_VR.dmg 29 + ``` 30 + 31 + ## ,upload 32 + 33 + 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. 34 + 35 + ``` 36 + > ,upload 37 + Transferred: 1.201 MiB / 1.201 MiB, 100%, 1.201 MiB/s, ETA 0s 38 + Transferred: 1 / 1, 100% 39 + Elapsed time: 2.8s 40 + https://jaromino.com/Files/Zoodle%20Doing%20Outlining.mp4 41 + ``` 42 + 43 + This one *is* definitely macOS-specific through `pbcopy`.