Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zdotdir



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