usb.plugin.zsh
September 12, 2025 ยท View on GitHub
This repository hosts a tiny plugin to quickly mount and unmount your USB drives.
Installation
Requirements: lsblk and udisksctl
git clone https://github.com/NiziL/usb.plugin.zsh ~/.oh-my-zsh/custom/plugins/usb
Do not forget to add this plugins in your .zshrc !
Usage
usb list to list the connected drives (using lsblk -I 8).
usb mount sda1 to mount /dev/sda1 using udisksctl.
usb umount sda1 to unmount /dev/sda1.
usb go sda1 to move to the mountpoint of /dev/sda1.
The zsh completion automatically list the available partitions to mount or unmount.