aboutsummaryrefslogtreecommitdiff
path: root/dot.zshrc.local
diff options
context:
space:
mode:
authorThomas Schneider <qsx@chaotikum.eu>2024-02-12 17:17:23 +0100
committerThomas Schneider <qsx@chaotikum.eu>2024-02-12 17:17:23 +0100
commitebdd6b625e599b298cc04bf24d83887c41bd5370 (patch)
tree22bd20e78e4ed0aa7d79b62f6b05a1f3941c2253 /dot.zshrc.local
parent180e0657148b22ef9fe429de2c64dcfdc4f0c16b (diff)
zsh: Add `open` command using gio(1)
Diffstat (limited to 'dot.zshrc.local')
-rw-r--r--dot.zshrc.local5
1 files changed, 5 insertions, 0 deletions
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"