diff --git a/common/.config/zsh/.zprofile b/common/.config/zsh/.zprofile index 43cc025d..92811ecc 100644 --- a/common/.config/zsh/.zprofile +++ b/common/.config/zsh/.zprofile @@ -7,9 +7,10 @@ set +a export EDITOR="nvim" export TERMINAL="st" -export TERMCMD=$TERMINAL -export OPENER=opener +export TERMCMD="$TERMINAL" +export OPENER="opener" export BROWSER="firefox" +export PAGER="less" # Locale export LANGUAGE="en_US" @@ -37,9 +38,16 @@ export FZF_DEFAULT_OPTS="\ --color=info:#7aa2f7,prompt:#7dcfff,pointer:#7dcfff \ --color=marker:#9ece6a,spinner:#9ece6a,header:#9ece6a \ " -export LESS=-R +export ANSIBLE_NOCOWS="1" # Stop those fucking cows in Ansible +export LESS="-R" export LESSOPEN="| /usr/bin/bat -f %s 2>/dev/null" -export ANSIBLE_NOCOWS=1 # Stop those fucking cows in Ansible +export LESS_TERMCAP_md=$(tput bold; tput setaf 4) +export LESS_TERMCAP_me=$(tput sgr0) +export LESS_TERMCAP_mb=$(tput blink) +export LESS_TERMCAP_us=$(tput setaf 2) +export LESS_TERMCAP_ue=$(tput sgr0) +export LESS_TERMCAP_so=$(tput smso) +export LESS_TERMCAP_se=$(tput rmso) # dotfiles management export STOW_DIR="$XDG_DATA_HOME/stow" diff --git a/common/.config/zsh/configs/2-setup b/common/.config/zsh/configs/2-setup index 695f7a77..ef434922 100644 --- a/common/.config/zsh/configs/2-setup +++ b/common/.config/zsh/configs/2-setup @@ -22,7 +22,7 @@ zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' zstyle ':fzf-tab:*' fzf-command ftb-tmux-popup zstyle ':fzf-tab:*' switch-group '<' '>' -zstyle ':fzf-tab:complete:cd:*' fzf-preview 'ls $realpath' +zstyle ':fzf-tab:complete:cd:*' fzf-preview 'ls -lhpANX --color=always --group-directories-first $realpath' zmodload zsh/complist compinit