dotfiles/.local/bin/scripts/part
2022-03-15 17:22:06 +01:00

10 lines
187 B
Bash
Executable file

#!/bin/sh
# Run parted with rlwrap
case "$1" in
([a-z]) part=/dev/sd$1;;
("") part= ;; # TODO unmount and run on current
(/*) part=$1;;
(*) part=/dev/$1;;
esac
shift
fdisk $part "$@"