diff options
| author | Thomas Schneider <qsx@chaotikum.eu> | 2024-02-12 17:17:23 +0100 |
|---|---|---|
| committer | Thomas Schneider <qsx@chaotikum.eu> | 2024-02-12 17:17:23 +0100 |
| commit | ebdd6b625e599b298cc04bf24d83887c41bd5370 (patch) | |
| tree | 22bd20e78e4ed0aa7d79b62f6b05a1f3941c2253 | |
| parent | 180e0657148b22ef9fe429de2c64dcfdc4f0c16b (diff) | |
zsh: Add `open` command using gio(1)
| -rw-r--r-- | dot.zshrc.local | 5 |
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" |
