From 88d26ba2adeafbe42a9c4791ba0a4f71d720ac4a Mon Sep 17 00:00:00 2001 From: John Ankarstrom Date: Wed, 7 Jul 2021 16:35:08 +0200 Subject: .shrc: Remove Bash-specific configuration --- home/john/.shrc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'home') 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() { -- cgit v1.2.3