Hi, folks --
...and then Bennett Todd said...
% 2000-07-17-09:26:17 Mostly Harmless:
% > Is there an easy way to specify my editor as gvim if I'm in x, and vim
% > if I'm connected from a remote machine via ssh?
%
% Ayup. Use a wrapper script. Set the EDITOR environment variable, or
%
% #!/bin/sh
% test -n "SSH_TTY" && exec vim ${1+"$@"}
% test -n "$DISPLAY" && exec gvim ${1+"$@"}
% exec vim ${1+"$@"}
Or, better yet, something like
test -n "$DISPLAY" && exec gvim ${1+"$@"} || exec vim ${1+"$@"}
to avoid running (vim or gvim) and then running vim.
%
% -Bennett
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001. There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*
PGP signature