Commit Diff
Diff:
a5cc1a6d5b13f288641e74b00fa66aa38364de08
adbd7a73b91d4fce7a2939cd59a66ec1be414645
Commit:
adbd7a73b91d4fce7a2939cd59a66ec1be414645
Tree:
1f528b3314170ede9bfc582e0c717b34d46eb396
Author:
Omar Polo <op@omarpolo.com>
Date:
Fri Jul 1 20:51:10 2022 UTC
Message:
minor tweaks
commit - a5cc1a6d5b13f288641e74b00fa66aa38364de08
commit + adbd7a73b91d4fce7a2939cd59a66ec1be414645
blob - 6e431d8f6f726c1ee48579620166eacad1ee2f66
blob + da14a3b239628f76687286a86e0d034c60fb0b80
--- README.md
+++ README.md
@@ -94,16 +94,15 @@ You can generate a list of executables from `$PATH` li
path=`echo $PATH | sed 's/:/ /g'`
-{
- for p in $path; do
- for f in "$p"/*; do
- [ -x "$f" ] && echo "${f##*/}"
- done
+for p in $path; do
+ for f in "$p"/*; do
+ [ -x "$f" ] && echo "${f##*/}"
done
-} | sort -fu | /bin/sh -c "$(mymenu "$@")"
+done | sort -fu | /bin/sh -c "$(mymenu "$@")"
```
-You can, for example, select a song to play from the current queue of [amused][amused]
+You can, for example, select a song to play from the current queue of
+[amused][amused]
```shell
if song=$(amused show | mymenu -p "Song: " -A); then
@@ -116,7 +115,7 @@ The same, but with mpd:
```shell
fmt="%position% %artist% - %title%"
if song=$(mpc playlist -f "$fmt" | mymenu -p "Song: " -A -d " "); then
- mpc play $(echo $song | sed "s/ .*$//")
+ mpc play $(echo $song | sed "s/ .*$//")
fi
```
Omar Polo