aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d/env.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh/shrc.d/env.sh')
-rw-r--r--sh/shrc.d/env.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/sh/shrc.d/env.sh b/sh/shrc.d/env.sh
new file mode 100644
index 00000000..4fa980f2
--- /dev/null
+++ b/sh/shrc.d/env.sh
@@ -0,0 +1,8 @@
+# Sort the output of env(1) for me
+env() {
+ if [ "$#" -eq 0 ] ; then
+ command env | sort
+ else
+ command env "$@"
+ fi
+}