mirror of https://github.com/garabik/grc.git
change grc.bashrc to grc.sh, as /etc/profile.d/ works only with .sh extensions
This commit is contained in:
parent
ce4f6290d8
commit
f2ace18191
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue