change grc.bashrc to grc.sh, as /etc/profile.d/ works only with .sh extensions

This commit is contained in:
Radovan Garabík 2020-12-28 17:01:17 +01:00
parent ce4f6290d8
commit f2ace18191
4 changed files with 4 additions and 4 deletions

View File

@ -179,13 +179,13 @@ or, if you have recent BSD tail:
## Automatic aliases
You can start using grc automatically with supported commands. The following assumes that `grc.<bashrc|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)).
### Bash
To set aliases for supported commands, append to your `~/.bashrc`:
[[ -s "/etc/grc.bashrc" ]] && source /etc/grc.bashrc
[[ -s "/etc/grc.sh" ]] && source /etc/grc.sh
### ZSH

2
debian/rules vendored
View File

@ -20,7 +20,7 @@ install:
# Add here commands to install the package into debian/tmp.
./install.sh `pwd`/debian/grc/usr `pwd`/debian/grc
# this is too invasive, would be incluided in a next major version
rm `pwd`/debian/grc/etc/profile.d/grc.bashrc
rm `pwd`/debian/grc/etc/profile.d/grc.sh
build: build-arch build-indep
build-arch: build-stamp

View File

View File

@ -24,7 +24,7 @@ cp -fv grc.conf $CONFDIR
cp -fv grc.zsh $CONFDIR
cp -fv grc.fish $CONFDIR
mkdir -p $PROFILEDIR
cp -fv grc.bashrc $PROFILEDIR
cp -fv grc.sh $PROFILEDIR
# probably we should not install it into site-functions in a debian package...
if [ "$PREFIX" = "/usr/local" ]; then