dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 5f246e3065b703edae010990a21615fd33c2e59e
parent 33551444a1b340bf8ee908638df6063c01ee8bfa
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Mon, 11 Apr 2022 16:45:45 +0200

mlm: confirmation with single letter

Diffstat:
Mscripts/mlm | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/mlm b/scripts/mlm @@ -21,7 +21,7 @@ RECENTLY_ADDED_PLAYLIST="$MUSIC_DIR"/recently-added.m3u import() { if [ -n "$(find . -mindepth 1 -maxdepth 1 -name '*.mp3')" ]; then printf "MP3 files found in current directory!\nAre you sure you want to import? [Y/n] " - read -r yn + stty raw; yn="$(dd bs=1 count=1 2>/dev/null)"; stty -raw case "$yn" in Y*|y*);; *) die 'User cancelled.';; @@ -29,7 +29,7 @@ import() { fi printf "Did you already run mp3gain? [Y/n] " - read -r yn + stty raw; yn="$(dd bs=1 count=1 2>/dev/null)"; stty -raw case "$yn" in Y*|y*);; *) die 'Run it now then. mp3gain -s i. add -a for albums.';;