Created
July 7, 2023 05:28
-
-
Save RobCranfill/8d9f6c003cab0a75ff339ee7d9d493fa to your computer and use it in GitHub Desktop.
A bash function to mount a CircuitPython device to a WSL mount
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# put this in .bashrc - or .bash_aliases? | |
function mountcirc() { | |
# mount drive $1 to /mnt/CIRCUITPY | |
sudo mount -t drvfs $1 /mnt/CIRCUITPY/ | |
echo "Mounted $1 to /mnt/CIRCUITPY" | |
ls -l /mnt/CIRCUITPY | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment