mirror of https://github.com/garabik/grc.git
add documentation about automatic aliasing
This commit is contained in:
parent
ea4aa18200
commit
ab22533a16
1
INSTALL
1
INSTALL
|
@ -33,3 +33,4 @@ else:
|
||||||
|
|
||||||
If you're on OS X and using Homebrew,
|
If you're on OS X and using Homebrew,
|
||||||
brew install grc
|
brew install grc
|
||||||
|
|
||||||
|
|
|
@ -179,13 +179,16 @@ or, if you have recent BSD tail:
|
||||||
|
|
||||||
## Automatic aliases
|
## Automatic aliases
|
||||||
|
|
||||||
You can start using grc automatically with supported commands. The following assumes that `grc.<sh|zsh|fish>` 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.<sh|zsh|fish>` 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
|
### Bash
|
||||||
|
|
||||||
To set aliases for supported commands, append to your `~/.bashrc`:
|
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
|
### ZSH
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue