mirror of https://github.com/garabik/grc.git
do not exit from the main shell when sourcing
This commit is contained in:
parent
1d7de7ea44
commit
e277b6e960
2
grc.sh
2
grc.sh
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
[ -f /etc/default/grc ] && . /etc/default/grc
|
[ -f /etc/default/grc ] && . /etc/default/grc
|
||||||
|
|
||||||
[ x$GRC_ALIASES = xtrue ] || exit 0
|
[ x$GRC_ALIASES = xtrue ] || return 0
|
||||||
|
|
||||||
GRC="$(which grc)"
|
GRC="$(which grc)"
|
||||||
if tty -s && [ -n "$TERM" ] && [ "$TERM" != dumb ] && [ -n "$GRC" ]; then
|
if tty -s && [ -n "$TERM" ] && [ "$TERM" != dumb ] && [ -n "$GRC" ]; then
|
||||||
|
|
Loading…
Reference in New Issue