[Labs-l] can we get rid of default vim config?
Dan Michael O. Heggø
danmichaelo+wikipedia at gmail.com
Sat Jun 8 21:26:26 UTC 2013
On 8 June 2013 23:11, Tim Landscheidt <tim at tim-landscheidt.de> wrote:
> Dan Michael O. Heggø <danmichaelo+wikipedia at gmail.com> wrote:
>
> > Haha, personally I prefer the "creepy wmf version" over the default, but
> > what I would really like is of course to use my own version when using
> > service accounts. Did anyone find a way to this? (without actually
> copying
> > the file) I like the concept of service accounts, but really miss my
> > dotfiles when using them.
>
> > [...]
>
> Can't you make your .vimrc world-readable (does it contain
> sensitive information?) and then "vim -u ~user/.vimrc"? Ah,
> sudo even sets SUDO_USER to the calling user, so you could
> somewhat automate that even for multiple maintainers.
>
SUDO_USER is very useful indeed. Do you also know which initialization
files are called when becoming a service account? It would be nice to
add `alias
vim="vim -u ~$SUDO_USER/.vimrc"` somewhere, but .bashrc (for the service
account) does not seem to be read.
Dan Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/labs-l/attachments/20130608/b25fdd25/attachment.html>
More information about the Labs-l
mailing list