From ab22533a16b29a9e9938c46ef3866297d5353d8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radovan=20Garab=C3=ADk?= Date: Sat, 7 Aug 2021 16:30:46 +0200 Subject: [PATCH] add documentation about automatic aliasing --- INSTALL | 1 + README.markdown | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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