mirror of
https://github.com/notwa/rc
synced 2024-06-28 18:17:11 -07:00
fix bash syntax errors
This commit is contained in:
parent
793f0095dc
commit
6e0b1029f9
|
@ -143,7 +143,6 @@ alias gb='git --no-pager branch' ### @- display the current git branch.
|
||||||
alias ash="busybox ash"
|
alias ash="busybox ash"
|
||||||
alias pip="maybesudo -H pip3"
|
alias pip="maybesudo -H pip3"
|
||||||
alias revend='objcopy -I binary -O binary --reverse-bytes=4' ### @- reverse the 4-byte endianness of a single file. *this is an in-place operation!*
|
alias revend='objcopy -I binary -O binary --reverse-bytes=4' ### @- reverse the 4-byte endianness of a single file. *this is an in-place operation!*
|
||||||
alias aur="BUILDDIR=$HOME/src $HOME/sh/aur -jj"
|
|
||||||
alias clone='maybesudo rsync -aHA --info=progress2 --no-i-r' ### @- invoke rsync suitably for creating virtually indistinguishable copies of files.
|
alias clone='maybesudo rsync -aHA --info=progress2 --no-i-r' ### @- invoke rsync suitably for creating virtually indistinguishable copies of files.
|
||||||
alias aligntabs="column -t -s$'\t'" ### @- align tab-delimited fields in stdin.
|
alias aligntabs="column -t -s$'\t'" ### @- align tab-delimited fields in stdin.
|
||||||
alias crawla='ssh joshua@crawl.akrasiac.org -i ~/.ssh/crawl' ### @- play Dungeon Crawl: Stone Soup through ssh on the akrasiac server.
|
alias crawla='ssh joshua@crawl.akrasiac.org -i ~/.ssh/crawl' ### @- play Dungeon Crawl: Stone Soup through ssh on the akrasiac server.
|
||||||
|
|
|
@ -74,7 +74,7 @@ mpv_watch() { ### @-
|
||||||
local url="$1"; shift
|
local url="$1"; shift
|
||||||
# checking for redundant flags might itself be redundant, but i want to be sure.
|
# checking for redundant flags might itself be redundant, but i want to be sure.
|
||||||
local seen=0
|
local seen=0
|
||||||
for a; do [ "$a" = "${a#--ytdl-format=}" ] || seen=1 done
|
for a; do [ "$a" = "${a#--ytdl-format=}" ] || seen=1; done
|
||||||
if [ $seen -eq 0 ]; then
|
if [ $seen -eq 0 ]; then
|
||||||
mpv \
|
mpv \
|
||||||
--af=lavfi="[$_M_PROCESS]" \
|
--af=lavfi="[$_M_PROCESS]" \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user