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:
parent
300e391dec
commit
0117953a7d
@ -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"
|
||||
|
@ -182,3 +182,8 @@ precmd() {
|
||||
preexec() {
|
||||
echo "\x1b]0;${2}\x1b\\"
|
||||
}
|
||||
|
||||
# Editor with single letter
|
||||
e() {
|
||||
eval "${EDITOR} ${@}"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user