andsens / homeshick

git dotfiles synchronizer written in bash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inconsistency between brew install instructions and installation page

ChristopherA opened this issue · comments

brew install homeshick reports

To enable the `homeshick cd <CASTLE>` command, you need to
`export HOMESHICK_DIR=/usr/local/opt/homeshick`
and
`source "/usr/local/opt/homeshick/homeshick.sh"`
in your $HOME/.bash_rc

However, the installation instructions at https://github.com/andsens/homeshick/wiki/Installation have a statement that printf's it into .bashrc

Two problems: the inconsistency, and which is the preferred place?

If you are bootstrapping from a brand new installation (i.e. a new macOS Sierra install) the bootstrapping tutorial at https://github.com/andsens/homeshick/wiki/Tutorials has similar inconsistency problems.

The difference is that homebrew installs homeshick to a non-default location (i.e. /usr/local/opt/homeshick), while the instructions in both the wiki and the readme are for a default install where HOMESHICK_DIR does not need to be set. The printf is just a copy & paste convenience.

However, the instruction about .bash_rc with an underscore in the homebrew formula is wrong, there is no underscore in .bashrc - you should probably open an issue on the homebrew repo for this.

This pull request was accepted.

Nice, thank you :-)