]> git.rmz.io Git - dotfiles.git/commitdiff
zsh: format the output of mount
authorSamir Benmendil <samir.benmendil@gmail.com>
Sat, 8 Feb 2014 06:43:12 +0000 (07:43 +0100)
committerSamir Benmendil <samir.benmendil@gmail.com>
Sat, 8 Feb 2014 06:43:12 +0000 (07:43 +0100)
zsh/functions/mount [new file with mode: 0644]

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
+}