From f75816242583edef5dabaa06f40106b156daf54e Mon Sep 17 00:00:00 2001 From: surtur Date: Fri, 8 Sep 2023 13:56:19 +0200 Subject: [PATCH] zshrc: check for system, not hostname --- .zshrc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.zshrc b/.zshrc index a0ec309..0c525a9 100644 --- a/.zshrc +++ b/.zshrc @@ -143,10 +143,11 @@ # export FZF_CTRL_T_OPTS="--preview '(highlight -O ansi -l {} 2> /dev/null || cat {} || tree -C {}) 2> /dev/null | head -200'" export FZF_CTRL_T_OPTS="--preview 'bat --style=numbers --color=always --line-range :200 {}'" - # if [[ "$(hostnamectl hostname)" == "leo" ]]; then - if [[ "$(hostname -s)" == "leo" ]]; then + # if [[ "$(hostnamectl hostname)" == "sth" ]]; then + # if [[ "$(hostname -s)" == "sth" ]]; then + if [[ "$(lsb_release -i -s)" == "Arch" ]]; then local fzf_bindings="/usr/share/fzf/key-bindings.zsh" - else + elif [[ "$(lsb_release -i -s)" == "Fedora" ]]; then local fzf_bindings="/usr/share/fzf/shell/key-bindings.zsh" fi zvm_after_init_commands+=("[ -f $fzf_bindings ] && source $fzf_bindings")