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 From fe6eef275357d19f0073ba6877a242a8f6dc4163 Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Mon, 12 Feb 2024 17:18:59 +0100 Subject: zsh: Use `eza` as ls(1) replacement if available Keep the aliases using `exa` for old systems where `eza` is not available. --- 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 78ad718..f48bf28 100644 --- a/dot.zshrc.local +++ b/dot.zshrc.local @@ -77,6 +77,11 @@ if (( $+commands[exa] )); then alias l="exa -g -l --git" alias la="exa -g -la --git" fi +if (( $+commands[eza] )); then + alias ls="eza" + alias l="eza -g -l --git" + alias la="eza -g -la --git" +fi if (( $+commands[rsync] )); then alias rs="rsync -vahPi" fi -- cgit v1.2.3