zshrc: check for system, not hostname
This commit is contained in:
parent
534fa64867
commit
f758162425
7
.zshrc
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 '(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 {}'"
|
export FZF_CTRL_T_OPTS="--preview 'bat --style=numbers --color=always --line-range :200 {}'"
|
||||||
|
|
||||||
# if [[ "$(hostnamectl hostname)" == "leo" ]]; then
|
# if [[ "$(hostnamectl hostname)" == "sth" ]]; then
|
||||||
if [[ "$(hostname -s)" == "leo" ]]; then
|
# if [[ "$(hostname -s)" == "sth" ]]; then
|
||||||
|
if [[ "$(lsb_release -i -s)" == "Arch" ]]; then
|
||||||
local fzf_bindings="/usr/share/fzf/key-bindings.zsh"
|
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"
|
local fzf_bindings="/usr/share/fzf/shell/key-bindings.zsh"
|
||||||
fi
|
fi
|
||||||
zvm_after_init_commands+=("[ -f $fzf_bindings ] && source $fzf_bindings")
|
zvm_after_init_commands+=("[ -f $fzf_bindings ] && source $fzf_bindings")
|
||||||
|
Loading…
Reference in New Issue
Block a user