refactor(zsh): change e alias to a function

This allows the `e` function to pickup the EDITOR var at runtime
This commit is contained in:
Price Hiller 2024-03-01 01:08:26 -06:00
parent 300e391dec
commit 0117953a7d
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
2 changed files with 5 additions and 1 deletions

View File

@ -73,7 +73,6 @@ if command -v wezterm >/dev/null 2>&1; then
fi
### Misc ###
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"

View File

@ -182,3 +182,8 @@ precmd() {
preexec() {
echo "\x1b]0;${2}\x1b\\"
}
# Editor with single letter
e() {
eval "${EDITOR} ${@}"
}