Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #190697
| From | Greg Wooledge <wooledg@eeg.ccf.org> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: vipw and vigr default editor |
| Date | 2018-01-05 21:20 +0100 |
| Message-ID | <v4GD8-8nv-1@gated-at.bofh.it> (permalink) |
| References | <v4Gts-8kd-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, Jan 05, 2018 at 03:00:43PM -0500, John Ratliff wrote: > I have to do > > sudo EDITOR=vim vipw > > How can I make vim the default editor for vipw/vigr. Or how can I set the > EDITOR variable when I use sudo automatically? By default, sudo strips all the useful variables out of your environment. If you want it to *keep* your environment, you need to change the /etc/sudoers file (with "sudo EDITOR=whatever visudo"). One way to do it is: Defaults env_reset Defaults:greg !env_reset ... where "greg" is the username who is trusted to set environment vars.
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
vipw and vigr default editor John Ratliff <john@bluemarble.net> - 2018-01-05 21:10 +0100
Re: vipw and vigr default editor Greg Wooledge <wooledg@eeg.ccf.org> - 2018-01-05 21:20 +0100
Re: vipw and vigr default editor Ulf Volmer <u.volmer@u-v.de> - 2018-01-05 21:40 +0100
Re: vipw and vigr default editor Greg Wooledge <wooledg@eeg.ccf.org> - 2018-01-05 21:50 +0100
Re: vipw and vigr default editor Brian <ad44@cityscape.co.uk> - 2018-01-05 21:50 +0100
Re: vipw and vigr default editor Roberto C. Sánchez <roberto@debian.org> - 2018-01-05 21:50 +0100
Re: vipw and vigr default editor Ulf Volmer <u.volmer@u-v.de> - 2018-01-05 22:00 +0100
Re: vipw and vigr default editor Roberto C. Sánchez <roberto@debian.org> - 2018-01-05 21:30 +0100
Re: vipw and vigr default editor John Ratliff <john@bluemarble.net> - 2018-01-05 23:10 +0100
Re: vipw and vigr default editor Charles Kroeger <ckrogrr@frankensteinface.com> - 2018-01-06 04:40 +0100
csiph-web