aboutsummaryrefslogtreecommitdiff
path: root/home/john/.shrc
diff options
context:
space:
mode:
authorJohn Ankarstrom <john@ankarstrom.se>2021-07-07 16:35:08 +0200
committerJohn Ankarstrom <john@ankarstrom.se>2021-07-07 16:35:08 +0200
commit88d26ba2adeafbe42a9c4791ba0a4f71d720ac4a (patch)
treeee7d57c342ed888ae386df95986c42f072bec21d /home/john/.shrc
parent762b070e479e26e4091e2e5055841ea8c41fb2de (diff)
downloadlbsd-88d26ba2adeafbe42a9c4791ba0a4f71d720ac4a.tar.gz
.shrc: Remove Bash-specific configuration
Diffstat (limited to 'home/john/.shrc')
-rw-r--r--home/john/.shrc5
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() {