diff --git a/INSTALL b/INSTALL index 65a313f..81edda0 100644 --- a/INSTALL +++ b/INSTALL @@ -33,3 +33,4 @@ else: If you're on OS X and using Homebrew, brew install grc + diff --git a/README.markdown b/README.markdown index b97cbe0..0c14cf7 100644 --- a/README.markdown +++ b/README.markdown @@ -179,13 +179,16 @@ or, if you have recent BSD tail: ## Automatic aliases -You can start using grc automatically with supported commands. The following assumes that `grc.` is in `/etc`. The location may differ (i. e. `/usr/local/etc` when installed with [homebrew](https://formulae.brew.sh/formula/grc)). +You can start using grc automatically with supported commands. The following assumes that `grc.` is in `/etc`. The location may differ (i. e. `/usr/local/etc` when installed with [homebrew](https://formulae.brew.sh/formula/grc)); or the `grc.sh` can be placed into `/etc/profile.d/` (this is in fact the default). Be aware this is somewhat invasive and better test it before deploying. ### Bash To set aliases for supported commands, append to your `~/.bashrc`: - [[ -s "/etc/grc.sh" ]] && source /etc/grc.sh + GRC_ALIASES=true + [[ -s "/etc/profile.d/grc.sh" ]] && source /etc/grc.sh + +If the file `/etc/default/grc` exists, it is sourced first, therefore you can place a line saying `GRC_ALIASES=true` there. ### ZSH