aboutsummaryrefslogtreecommitdiff
path: root/rpath.sh
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-06-14 21:45:43 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-06-14 21:45:43 -0700
commit03f16084ba254b4025db4e928c37d158ba427f21 (patch)
tree8ee16ac7f0fe12ad3e390848e87e820948d968aa /rpath.sh
parent1523a23a87befb47751cf43479ee3f17a847e8f3 (diff)
downloadrbpm-03f16084ba254b4025db4e928c37d158ba427f21.tar.gz
rbpm-03f16084ba254b4025db4e928c37d158ba427f21.tar.xz
Move asterisk to front for better visibility.
Diffstat (limited to 'rpath.sh')
-rwxr-xr-xrpath.sh4
1 files changed, 2 insertions, 2 deletions
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