aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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