diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-18 10:33:10 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-18 10:34:31 +1200 |
commit | 2494e31095f094e58a47b13d2454bc8422f207ff (patch) | |
tree | 42839a06a9f0f1e18733d0b68fdc29b37d4941e3 /sh | |
parent | Do away with dircolors and LS_COLORS (diff) | |
download | dotfiles-2494e31095f094e58a47b13d2454bc8422f207ff.tar.gz dotfiles-2494e31095f094e58a47b13d2454bc8422f207ff.zip |
Sort the output of env(1) if no arguments
Diffstat (limited to 'sh')
-rw-r--r-- | sh/shrc.d/env.sh | 8 |
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 +} |