don't add anything to zshrc without informing the user #332

LeSpocky opened this Issue Oct 21, 2016 · 3 comments


None yet

3 participants


When installing 2.5.2 on zsh, I got the following output

alex@susan ~/src/ (git)-[tags/2.5.2] % ./ --install --accountemail
[Do 20. Okt 16:18:42 CEST 2016] Installing to /home/alex/
[Do 20. Okt 16:18:42 CEST 2016] Installed to /home/alex/
[Do 20. Okt 16:18:42 CEST 2016] OK, Close and reopen your terminal to start using
[Do 20. Okt 16:18:42 CEST 2016] Installing cron job
no crontab for alex
no crontab for alex
[Do 20. Okt 16:18:42 CEST 2016] Good, bash is installed, change the shebang to use bash as prefered.
[Do 20. Okt 16:18:42 CEST 2016] OK

The changes made to my system as I could find out where these:

  • created directory ~/ and copied things to it
  • created a cronjob
  • appended a line to my ~/.zshrc

The first two things are more or less clear, although the install script could be even more clear about the cronjob. The last is not obvious at all. Log messages talk about bash, yes bash is installed, but it's not the shell I use. No word about zsh, but silently appending things to my ~/.zshrc … and even wrong. See, this is the line appended:

. "/home/alex/"

This file contains:

export LE_WORKING_DIR="/home/alex/"

The first is setting an environment variable, which should go to ~/.zshenv for zsh. The alias could go to ~/.zshrc but if it goes unnoticed, people regulary overwriting their zshrc from another source would silently overwrite the changes made by installer.

@Neilpang Neilpang closed this in aba5c63 Oct 23, 2016

I just added more info. 9aa3be7

If you don't like the alias. you can uninstall the alias:

./   _uninstallalias

Fine, thank you. :-)


Can this be placed on the Also can this be changed to a flag like --noalias just like --nocron during installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment