From 8b2ef3da5084295454dbdf440a55eb53c787e9ad Mon Sep 17 00:00:00 2001 From: velvettear Date: Wed, 2 Oct 2024 15:56:50 +0200 Subject: [PATCH] fix minor zsh bugs --- zsh/conf.d/n97 | 8 ++++++-- zsh/zprofile | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/zsh/conf.d/n97 b/zsh/conf.d/n97 index 2025b36..ba77da3 100755 --- a/zsh/conf.d/n97 +++ b/zsh/conf.d/n97 @@ -9,7 +9,7 @@ # author: Daniel Sommer # license: MIT -# ----- aliases ----- # +# ----- general aliases ----- # alias eza='eza --icons --group --time-style long-iso --octal-permissions --git' alias ls='eza' alias ll='eza --long' @@ -35,7 +35,11 @@ alias pfetch='printf "\n" && pfetch' alias fetch='pfetch' alias stats='pfetch' alias icat='kitten icat' -alias ssh='kitty +kitten ssh' + +# ----- non-ssh aliases ----- # +if [[ -n "$SSH_TTY" ]]; then + alias ssh='kitty +kitten ssh' +fi # ----- pfetch ----- # export PF_INFO="ascii title host kernel memory wm shell editor pkgs uptime palette" diff --git a/zsh/zprofile b/zsh/zprofile index f0bc81b..ab0cca2 100755 --- a/zsh/zprofile +++ b/zsh/zprofile @@ -23,7 +23,7 @@ export TEMP="/tmp" export TMPDIR="/tmp" export EDITOR="nvim" export VISUAL="nvim" -if [[ "$(command bat 2> /dev/null)" ]]; then +if [[ "$(which bat 2> /dev/null)" ]]; then export PAGER="bat" else export PAGER="less"