[Labs-l] can we get rid of default vim config?

Diederik van Liere dvanliere at wikimedia.org
Sun Jun 9 10:49:22 UTC 2013


This is a pretty neat solution to have everybody have their own .dotfiles
on the machines they can acces:
http://blog.booking.com/dotfiles-distribution-at-booking.com.html
D


On Sun, Jun 9, 2013 at 12:01 AM, 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.
>
> ~/.bashrc is usually called by ~/.profile which is missing
> for service accounts as well.  So I copy these (slightly
> adapted) to new tools I create, not least to alias "rm" to
> "rm -i" :-).
>
> That's an issue that has me thinking for some days now:
> Shouldn't service accounts' home directories be set up from
> /etc/skel as well?
>
> Petr Bena <benapetr at gmail.com> wrote:
>
> > yes it works by doing vim -u BUT that means you need to add some extra
> > stuff to .profile of every user on every project you use :/
>
> > I understand that someone likes the version that we have on labs by
> > default, but shouldn't people have option to choose what they like,
> > rather than being forced to use something what someone thinks that is
> > better for them...
>
> > [...]
>
> How would that work?  Either the plain vim or the WMF-style
> users will not like the default.  But both have the option
> to choose something different (I assume; I don't use vim).
>
> Tim
>
>
> _______________________________________________
> Labs-l mailing list
> Labs-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/labs-l
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/labs-l/attachments/20130609/d99f7f07/attachment-0001.html>


More information about the Labs-l mailing list