From fc7bd5d2fdd4ad657c16dae2c161f641b04e96d0 Mon Sep 17 00:00:00 2001 From: Ilyes Kechidi Date: Fri, 25 Nov 2016 23:05:52 +0100 Subject: [PATCH] added formatusb plugin --- plugins/formatusb/formatusb.plugin.zsh | 288 +++++++++++++++++++++++++ 1 file changed, 288 insertions(+) create mode 100644 plugins/formatusb/formatusb.plugin.zsh diff --git a/plugins/formatusb/formatusb.plugin.zsh b/plugins/formatusb/formatusb.plugin.zsh new file mode 100644 index 00000000..ad53530d --- /dev/null +++ b/plugins/formatusb/formatusb.plugin.zsh @@ -0,0 +1,288 @@ +# Utility function to format USB Stick/Hard Drive +# It will create a single partition that fills the whole drive space + + + +format2usb-ext2() { + if [ $# -lt 2 ]; then + echo -e "format and create a partition that fills up the whole device" + echo -e "\nUsage: $0