zsh: nicer output for fzf-tab and less
This commit is contained in:
parent
e615bc6cb2
commit
53d66d0a2f
2 changed files with 13 additions and 5 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue