Skip to content

Commit

Permalink
Merge branch 's-hamann-cmd-description'
Browse files Browse the repository at this point in the history
  • Loading branch information
Biont committed Dec 17, 2019
2 parents e45f508 + c20c0f4 commit d475d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sway-launcher-desktop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function describe-desktop() {
function describe-command() {
readarray arr < <(whatis -l "$1" 2>/dev/null)
description="${arr[0]}"
description="${description%*-}"
description="${description#* - }"
echo -e "\033[33m${1}\033[0m"
echo "${description:-No description}"
}
Expand Down

0 comments on commit d475d74

Please sign in to comment.