make envs ls better readable

This commit is contained in:
creme 2019-09-05 11:01:49 +02:00
parent eb99e04547
commit 9cd2d417a5
No known key found for this signature in database
GPG Key ID: C147C3B7FBDF08D0
1 changed files with 2 additions and 1 deletions

3
envs
View File

@ -19,6 +19,7 @@
# Usage: envs [-h|--help]
# ---------------------------------------------------------------------------
export TERM=xterm-256color
PROGNAME=${0##*/}
VERSION="0.0.1"
@ -173,7 +174,7 @@ case $1 in
for scr in /envs/bin/*; do
script_name=$(basename $scr)
target=$(readlink -f "$scr")
echo "$script_name by "$(stat -c '%U' $target)
printf '%s%s by %s%s' "$(tput setaf 6)" "$script_name" "$(stat -c '%U' $target)" "$(tput sgr0)"
cat /envs/descriptions/$script_name
echo ""
done ;;