Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zdotdir
- X-seq: zsh-users 18578
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: zdotdir
- Date: Mon, 10 Mar 2014 08:32:24 -0700
- In-reply-to: <lfk949$rs$1@ger.gmane.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <lfk949$rs$1@ger.gmane.org>
On Mar 10, 12:51pm, Yuri D'Elia wrote:
}
} However, I would like then the files not to have a leading dot, so I
} could just have
}
} ~/.zsh/zprofile like in /etc/.
}
} Is it possible?
Just create symbolic links:
cd $ZDOTDIR
for dotfile in zshenv zshrc zprofile zlogin; ln -s $dotfile .$dotfile
If for some reason you don't want to use symlinks, you can instead do
cd $ZDOTDIR
for dotfile in zshenv zshrc zprofile zlogin
print "source \$ZDOTDIR/$dotfile" > .$dotfile
but that will print errors about missing files if you don't create all
four of the dot-less ones, which the symlink approach will not.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author