From 9bb2411b4ef0095063cfb7b712d4cc6369ecd859 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 18 Aug 2023 23:52:35 -0500 Subject: [PATCH] feat(zsh): add alias to run editor in sudo -E env --- dots/.config/zsh/config/profile/profile/aliases.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/dots/.config/zsh/config/profile/profile/aliases.zsh b/dots/.config/zsh/config/profile/profile/aliases.zsh index 5ce77afd..7e263d8d 100644 --- a/dots/.config/zsh/config/profile/profile/aliases.zsh +++ b/dots/.config/zsh/config/profile/profile/aliases.zsh @@ -74,6 +74,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 se="sudo -E ${EDITOR} ${1}" if command -v arecord >/dev/null 2>&1; then alias audio-record="arecord -f dat -r 41000 -d 5 $(date_iso_8601).wav"