refactor(zsh): replace 'o' alias with function
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 1m13s

This commit is contained in:
Price Hiller 2024-05-05 15:56:05 -05:00
parent a2eb01116a
commit 521474848d
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
2 changed files with 7 additions and 6 deletions

View File

@ -67,11 +67,6 @@
alias p="wl-paste"
fi
if ! command -v open >/dev/null 2>&1 && command -v xdg-open >/dev/null 2>&1; then
alias open="xdg-open"
alias o="xdg-open"
fi
if command -v systemctl >/dev/null 2>&1; then
alias sysu="systemctl --user"
alias sys="systemctl"
@ -108,4 +103,4 @@
if ! alias img >/dev/null 2>&1 && command -v swappy >/dev/null 2>&1; then
alias img="swappy -f -"
fi
}
}

View File

@ -191,3 +191,9 @@ e() {
eval "${EDITOR} ${@}"
fi
}
# Open file with default program and detach
o() {
local in="${@}"
xdg-open "${@}" & disown
}