[Labs-l] can we get rid of default vim config?
Platonides
platonides at gmail.com
Sun Jun 9 20:02:08 UTC 2013
On 09/06/13 00:01, Tim Landscheidt wrote:
>>> 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" :-).
I would add those alias to /etc/bash.bashrc, so that you don't need to
copy dot files to service accounts.
> 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?
It depends on the specifics of your ‘service accounts’, but it often
makes no sense for them to have dotfiles (sometimes not even a home!).
More information about the Labs-l
mailing list