diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-03-24 15:38:58 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-03-24 15:38:58 +1300 |
commit | 25d7fce47f1841c9dfabc05f4720c4c2b325f85b (patch) | |
tree | 7e6ece3d5dacf65d61bf928f06eb4e610216394f | |
parent | Move stderr block to within subst (diff) | |
download | dotfiles-25d7fce47f1841c9dfabc05f4720c4c2b325f85b.tar.gz dotfiles-25d7fce47f1841c9dfabc05f4720c4c2b325f85b.zip |
Move redirect to correct process
-rwxr-xr-x | bin/exm | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,7 +1,7 @@ #!/bin/sh # Prevent Vim's ex(1) implementation from clearing the screen if [ -t 0 ] ; then - ver=$(ex --version | sed '1{s/ .*//;q;}' 2>/dev/null) + ver=$(ex --version 2>/dev/null | sed '1{s/ .*//;q;}') case $ver in # Lie to Vim; tell it it's a dumb terminal, and that its required "cm" # feature is invoked with a newline character. |