diff options
author | 2016-02-22 22:13:06 +0100 | |
---|---|---|
committer | 2016-02-22 22:41:52 +0100 | |
commit | c7fe39df97de287a029c3e10058c8719655f8dc0 (patch) | |
tree | 6fd72a13738942f292d1c39fde3daf6bc75098c4 | |
parent | set_man_symlink: fix variables (diff) | |
download | eselect-python-c7fe39df97de287a029c3e10058c8719655f8dc0.tar.gz eselect-python-c7fe39df97de287a029c3e10058c8719655f8dc0.tar.bz2 eselect-python-c7fe39df97de287a029c3e10058c8719655f8dc0.zip |
list: Use a more readable (verbose) output format
-rw-r--r-- | python.eselect.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/python.eselect.in b/python.eselect.in index 701c02b..e9390ec 100644 --- a/python.eselect.in +++ b/python.eselect.in @@ -294,10 +294,10 @@ do_list() { write_list_start "Available Python${filter+ ${filter#--py}} interpreters, in order of preference:" for (( i = 0; i < ${#all[@]}; ++i )); do - if has "${all[i]}" "${preferred[@]}"; then - all[i]=$(highlight_marker "${all[i]}") - elif has "${all[i]}" "${disabled[@]}"; then - all[i]=$(highlight_marker "${all[i]}" "$(highlight_warning -)") + if has "${all[i]}" "${disabled[@]}"; then + all[i]=$(highlight_marker "${all[i]}" "$(highlight_warning "(disabled)")") + elif ! has "${all[i]}" "${preferred[@]}"; then + all[i]=$(highlight_marker "${all[i]}" "(fallback)") fi done write_numbered_list -m "(none found)" "${all[@]}" |