https://github.com/matejstastny/dusk
A diskutil list wrapper wit pretty output
https://github.com/matejstastny/dusk
bash-script cli diskutil macos
Last synced: about 2 months ago
JSON representation
A diskutil list wrapper wit pretty output
- Host: GitHub
- URL: https://github.com/matejstastny/dusk
- Owner: matejstastny
- License: mit
- Created: 2025-09-02T16:30:47.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-09-08T06:10:21.000Z (9 months ago)
- Last Synced: 2025-10-05T21:56:52.724Z (8 months ago)
- Topics: bash-script, cli, diskutil, macos
- Language: Shell
- Homepage:
- Size: 257 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
___ __
/ _ \ __ __ ___ / /__
/ // / / // / (_-< / '_/
/____/ \_,_/ /___/ /_/\_\

dusk is a simple macOS CLI tool written in **Bash 3.2+**. It wraps the `diskutil list` command to display all disks in a clean, colorful table. It also has an optional flag to show only external disks.
### Intall
To install this tool, you can use Homebrew:
```sh
brew tap matejstastny/dusk
brew install dusk
```
#### Manual Install
To install dusk from source, clone this repo and then run `sudo make install`. This will copy the script to `/usr/local/bin` so it can be used globally, and it also installs the dusk man page. To uninstall dusk, simply run `sudo make uninstall` in the cloned repo directory. This will remove both the script and the man page.
#### Flags
Running `dusk` lists all disks, numbers them for clarity, and for each one it displays the size, type, and mount point. If any of that information is not accessible, it will print a dash instead. Use `dusk -e` to show only external disks, `dusk -v` to check the version, and `dusk -h` to show a help message. The output is designed to be readable and suitable for both casual use or to be used inside another project. Dusk also uses the [`getoptions`](https://github.com/ko1nksm/getoptions).