citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit 3bfcfac2cc932ac710f92a01970aaad61c2db732
parent 063e73c23b4d55e13658dfed60966e5ce9d91896
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 13 Nov 2020 12:15:56 -0800

bin/edit: visual vim mode for non-ttys

Diffstat:
Mbin/edit | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/bin/edit b/bin/edit @@ -1,5 +1,7 @@ #!/usr/bin/env bash -exec nvim "$@" -#emacsclient -s $HOME/.emacs.d/server/server -a vim "$@" & -#wmctrl -a emacs@$HOST -#wait + +if [ -t 0 ]; then + exec nvim "$@" +else + exec urxvtc -e nvim "$@" +fi