zsh + fzf stuff

This commit is contained in:
francois
2025-11-23 08:56:34 +01:00
parent 300b58b88d
commit 12ba6c674a
2 changed files with 9 additions and 6 deletions

View File

@@ -5,3 +5,10 @@ export EDITOR="nvim"
export XDG_CONFIG_HOME="$HOME/.config" export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share" export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$HOME/.cache" export XDG_CACHE_HOME="$HOME/.cache"
#fzf
export FZF_DEFAULT_OPTS="--style default --layout=reverse --height 30% --preview='bat --plain --color=always {}'"
export FZF_CTRL_R_OPTS="--style minimal --info inline --no-sort --no-preview" # separate opts for history widget
export MANPAGER="sh -c 'col -bx | batcat --language=man --plain'"
export MANROFFOPT="-c"

View File

@@ -7,10 +7,6 @@
#promptinit #promptinit
#prompt adam1 #prompt adam1
# man opt
export MANPAGER="sh -c 'col -bx | batcat --language=man --plain'"
export MANROFFOPT="-c"
setopt histignorealldups sharehistory setopt histignorealldups sharehistory
# Use emacs keybindings even if our EDITOR is set to vi # Use emacs keybindings even if our EDITOR is set to vi
@@ -41,7 +37,7 @@ zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd' zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
# colored GCC warnings and errors # colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# main opts # main opts
setopt append_history inc_append_history share_history setopt append_history inc_append_history share_history
@@ -63,7 +59,7 @@ HISTSIZE=1000
SAVEHIST=1000 SAVEHIST=1000
# fzf setup # fzf setup
#source <(fzf --zsh) # allow for fzf history widget source <(fzf --zsh) # allow for fzf history widget
# set up prompt # set up prompt
NEWLINE=$'\n' NEWLINE=$'\n'