From 92934e48fe0ab901b4932f0c00289431a358ab48 Mon Sep 17 00:00:00 2001 From: velvettear Date: Wed, 2 Oct 2024 16:10:18 +0200 Subject: [PATCH] update zsh configs --- zsh/conf.d/docker | 27 +++++---------------------- zsh/conf.d/fujitsu | 2 +- zsh/conf.d/n97 | 2 +- 3 files changed, 7 insertions(+), 24 deletions(-) diff --git a/zsh/conf.d/docker b/zsh/conf.d/docker index 6f3af51..86798e4 100755 --- a/zsh/conf.d/docker +++ b/zsh/conf.d/docker @@ -10,26 +10,9 @@ # license: MIT # ----- aliases ----- # -alias eza='eza --icons --group --time-style long-iso --octal-permissions --git' -alias ls='eza' -alias ll='eza --long' -alias la='eza --all' -alias lla='eza --long --all' -alias df='duf' -alias du='gdu' -alias grep='rg -P' -alias grepa='rg -P --hidden' -alias find='fd' -alias findf='fd --type file' -alias findd='fd --type directory' -alias findl='fd --type symlink' -alias finds='fd --type socket' -alias findp='fd --type pipe' -alias findx='fd --type executable' -alias finde='fd --type empty' -alias bat='bat --style header-filename,header-filesize,grid,snip,changes,numbers' -alias cat='bat' -alias batp='bat --style plain' -alias catp='batp' alias icat='kitten icat' -alias ssh='kitty +kitten ssh' + +# ----- non-ssh aliases ----- # +if [[ -z "$SSH_TTY" ]]; then + alias ssh='kitty +kitten ssh' +fi diff --git a/zsh/conf.d/fujitsu b/zsh/conf.d/fujitsu index 1937e0e..0a0005b 100755 --- a/zsh/conf.d/fujitsu +++ b/zsh/conf.d/fujitsu @@ -39,7 +39,7 @@ alias stats='pfetch' alias icat='kitten icat' # ----- non-ssh aliases ----- # -if [[ -n "$SSH_TTY" ]]; then +if [[ -z "$SSH_TTY" ]]; then alias ssh='kitty +kitten ssh' fi diff --git a/zsh/conf.d/n97 b/zsh/conf.d/n97 index ba77da3..95899cc 100755 --- a/zsh/conf.d/n97 +++ b/zsh/conf.d/n97 @@ -37,7 +37,7 @@ alias stats='pfetch' alias icat='kitten icat' # ----- non-ssh aliases ----- # -if [[ -n "$SSH_TTY" ]]; then +if [[ -z "$SSH_TTY" ]]; then alias ssh='kitty +kitten ssh' fi