From b1a57552f32f6891b92d99034429b830dd546e49 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 22 May 2023 18:07:44 -0500 Subject: [PATCH] feat(zsh): create alias for xdg-open -> open --- dots/.config/zsh/config/profile/profile/aliases.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dots/.config/zsh/config/profile/profile/aliases.zsh b/dots/.config/zsh/config/profile/profile/aliases.zsh index c41e1b80..c9dab666 100644 --- a/dots/.config/zsh/config/profile/profile/aliases.zsh +++ b/dots/.config/zsh/config/profile/profile/aliases.zsh @@ -48,6 +48,10 @@ if [[ "${OSTYPE}" == "linux-gnu"* ]]; then alias c="wl-copy" 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" + fi fi ### Bat ###