Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zsh configuration files
- X-seq: zsh-users 13486
- From: "Allan Caffee" <allan.caffee@xxxxxxxxx>
- To: "Zsh Users" <zsh-users@xxxxxxxxxx>
- Subject: Re: Zsh configuration files
- Date: Tue, 25 Nov 2008 12:10:43 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=xmm933H9UqxabMg+TchH/WIG30L3c2V1slaTMBG+8QE=; b=E1nO22udznec9hsy31WeXFsAvxlA4qkqZcqSoTNNCvgbaineHnCxRKNcpIyklKk+XC jFdabCu4lNDL0CN5ejLMe+IGE8zhUwj4MKAh6SLBnARqPlFchhc8twWk/xfnNIzw2cXm IPHE0vQBzepKb7CFaSnNAkwpNAlHg5LmyV3TM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=OJlHkxxBghRTiGbvQ8kwVuQ3KdM8Y/Ro/n0pVmrLdoLiAQhz+VhEjkix4GCd2jsuDc VJzcY6RyFn4cdl6BkctiZnKpLIAjnmoMlisszQhrdnK5Pd535uYRNh6L/xfzCkIS1ozz F9YNBzj0OM/DO1fd/isFB93i1mFl9Rw3Eh/So=
- In-reply-to: <alpine.LNX.2.00.0811241643240.20698@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <ggbjfl$der$1@xxxxxxxxxxxxx> <2d460de70811230730v1a79f3b3rd73a020f99b66f02@xxxxxxxxxxxxxx> <ggcv5t$a88$1@xxxxxxxxxxxxx> <alpine.LNX.2.00.0811241643240.20698@xxxxxxxxxxxxxxx>
On Mon, Nov 24, 2008 at 5:33 PM, Benjamin R. Haskell <zsh@xxxxxxxxxx> wrote:
> Long ago, I set some things up for easily sharing my Zsh startup scripts
> between various computers I use. I did most of this when I was still fairly
> new to Zsh, so some things might have easier/better ways to do them, but
> this is how I set mine up. Some features:
>
> 1. Automatically runs any files matching .zsh_* in my home dir, excluding
> vim swap files
>
> 2. For running as root, I can just link my normal-user .zshrc and .zshenv
> files, and it'll detect that they're linked, and use the .zsh_* files from
> my normal-user directory
That sounds really dangerous. You're offering a hook for someone to
execute arbitrary code as root. If someone breaks your user account
they could for example add a file in your home directory that resets
the root password or does some other really mean things. If you want
root to have the same setup as your regular user you should put it
somewhere that only root can write.
Other than that I have a very familiar setup with Zsh initialization
files contained in a Git repository in /usr/local/etc/zsh so that I
can keep changes logged and synced between separate systems.
Regards,
Allan
Messages sorted by:
Reverse Date,
Date,
Thread,
Author