From 337ab10e6bc09244d318fe3bb5116b3992b139cc Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 10 Oct 2022 01:40:22 -0500 Subject: [PATCH] refactor(zsh): better loading of audio-record --- dots/.config/zsh/config/profile/profile/aliases.zsh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dots/.config/zsh/config/profile/profile/aliases.zsh b/dots/.config/zsh/config/profile/profile/aliases.zsh index 58a9bc61..0f129fe3 100644 --- a/dots/.config/zsh/config/profile/profile/aliases.zsh +++ b/dots/.config/zsh/config/profile/profile/aliases.zsh @@ -64,4 +64,7 @@ alias e="${EDITOR}" alias Get-Public-IPV4="dig @resolver4.opendns.com myip.opendns.com +short -4" alias Get-Public-IPV6="dig @resolver1.ipv6-sandbox.opendns.com AAAA myip.opendns.com +short -6" alias cv="command -v" -alias audio-record="arecord -f dat -r 41000 -d 5 $(date_iso_8601).wav" + +if command -v arecord >/dev/null 2>&1 then + alias audio-record="arecord -f dat -r 41000 -d 5 $(date_iso_8601).wav" +fi