dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit b921cc0a2dac940faf216763f67195c32ed7c310
parent 6057649eae7a4dd611187405fca264f2897ab1cd
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue,  1 May 2018 13:20:38 -0400

Add sc-im

Diffstat:
Minit/30_macos_recipes.sh | 3++-
Mlinks/bin/youtube-dl-music.sh | 14+++++++-------
2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/init/30_macos_recipes.sh b/init/30_macos_recipes.sh @@ -64,6 +64,7 @@ brews=( reattach-to-user-namespace # needed for tmux rename # rename many files with convenient syntax ripgrep # a faster grep + sc-im # terminal-based spreadsheets shellcheck # bash linter ssh-copy-id # add public key to a remote's authorized_keys file sshfs @@ -90,7 +91,7 @@ brews=( ) for brew in "${brews[@]}"; do - brew install $brew + brew install "$brew" done diff --git a/links/bin/youtube-dl-music.sh b/links/bin/youtube-dl-music.sh @@ -15,7 +15,7 @@ $prefix youtube-dl \ --extract-audio \ --audio-quality 0 \ --audio-format mp3 \ - $1 + "$1" read -p "add metadata? [y/N] " -n 1 -r echo @@ -27,13 +27,13 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then --extract-audio \ --audio-quality 0 \ --audio-format mp3 \ - $1) - filename=$(echo $filename | sed "s/\..*$/.mp3/") + "$1") + filename=$(echo "$filename" | sed "s/\..*$/.mp3/") - read -p "artist: " artist - read -p "album: " album - read -p "song: " song - read -p "track [e.g. 01]: " track + read -r -p "artist: " artist + read -r -p "album: " album + read -r -p "song: " song + read -r -p "track [e.g. 01]: " track id3v2 --artist "$artist" --album "$album" --song "$song" --track "$track" \ "$filename"