]> git.rmz.io Git - dotfiles.git/blobdiff - zsh/functions/mount
zsh: format the output of mount
[dotfiles.git] / zsh / functions / mount
diff --git a/zsh/functions/mount b/zsh/functions/mount
new file mode 100644 (file)
index 0000000..cceb069
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/zsh
+
+function mount() {
+  if [[ $# -eq 0 ]]; then
+    /bin/mount | column -t
+  else
+    /bin/mount "$@"
+  fi
+}