From ebdd6b625e599b298cc04bf24d83887c41bd5370 Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Mon, 12 Feb 2024 17:17:23 +0100 Subject: zsh: Add `open` command using gio(1) --- dot.zshrc.local | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'dot.zshrc.local') diff --git a/dot.zshrc.local b/dot.zshrc.local index 19fb1f6..78ad718 100644 --- a/dot.zshrc.local +++ b/dot.zshrc.local @@ -63,6 +63,11 @@ qsx_fix_vcs_info # Reset terminal cursor printf "\033[0 q" } +if ! (( $+commands[open] )) && (( $+commands[gio] )); then + function open { + gio open "$@" >/dev/null 2>/dev/null + } +fi alias g=git alias ec="emacsclient -n" alias et="emacsclient -t" -- cgit v1.2.3