From 03f16084ba254b4025db4e928c37d158ba427f21 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Sat, 14 Jun 2014 21:45:43 -0700 Subject: Move asterisk to front for better visibility. --- rpath.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rpath.sh') diff --git a/rpath.sh b/rpath.sh index ea84d21..c470bff 100755 --- a/rpath.sh +++ b/rpath.sh @@ -107,9 +107,9 @@ rpath_ls() { current=$(_get | head -n 1) for dir in "${dirs[@]}"; do - str="[$((++counter))] ${dir##*/}" + str=" [$((++counter))] ${dir##*/}" - [[ "${dir##*/}" == "${current}" ]] && str+=" *" + [[ "${dir##*/}" == "${current}" ]] && str="${str/ /*}" _echo "${str}" done -- cgit v1.2.3-70-g09d2