diff options
author | John Ankarstrom <john@ankarstrom.se> | 2021-07-07 16:35:08 +0200 |
---|---|---|
committer | John Ankarstrom <john@ankarstrom.se> | 2021-07-07 16:35:08 +0200 |
commit | 88d26ba2adeafbe42a9c4791ba0a4f71d720ac4a (patch) | |
tree | ee7d57c342ed888ae386df95986c42f072bec21d /home/john/.shrc | |
parent | 762b070e479e26e4091e2e5055841ea8c41fb2de (diff) | |
download | lbsd-88d26ba2adeafbe42a9c4791ba0a4f71d720ac4a.tar.gz |
.shrc: Remove Bash-specific configuration
Diffstat (limited to 'home/john/.shrc')
-rw-r--r-- | home/john/.shrc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/home/john/.shrc b/home/john/.shrc index b230756..51d3be7 100644 --- a/home/john/.shrc +++ b/home/john/.shrc @@ -31,9 +31,8 @@ case "$-" in *i*) eval name=\$$# r=`find . -name "$name" -print -exit` [ -z "$r" ] && { echo "$name" not found 2>&1; return 1; } - [ -f "$r" ] && r="$(dirname "$r")" - cd "$r" && - { [ $# -eq 1 ] && return; BASH_COMMAND=$* cmdtitle 2>&-; "$@"; } + [ -f "$r" ] && r=$(dirname "$r") + cd "$r" && [ $# -gt 1 ] && "$@" } sys() { |