zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: zdotdir
Date: Mon, 10 Mar 2014 08:32:24 -0700	[thread overview]
Message-ID: <140310083224.ZM10646@torch.brasslantern.com> (raw)
In-Reply-To: <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.


  parent reply	other threads:[~2014-03-10 15:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-10 11:51 zdotdir Yuri D'Elia
2014-03-10 12:01 ` zdotdir Aaron Kaufman
2014-03-10 13:03   ` zdotdir Yuri D'Elia
2014-03-10 15:32 ` Bart Schaefer [this message]
2014-03-10 17:28   ` zdotdir Yuri D'Elia
2014-03-10 18:25     ` return up two levels? Ray Andrews
2014-03-10 19:42       ` Peter Stephenson
2014-03-11  3:00         ` Ray Andrews
2014-03-11  3:33           ` Kurtis Rader
2014-03-11 14:54             ` Ray Andrews
  -- strict thread matches above, loose matches on Subject: below --
2000-01-06 14:11 ZDOTDIR Shao Zhang
2000-01-08 20:25 ` ZDOTDIR V. L. Simpson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=140310083224.ZM10646@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).