zshrc: check for system, not hostname

This commit is contained in:
surtur 2023-09-08 13:56:19 +02:00
parent 534fa64867
commit f758162425
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

7
.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")