Skip to content

Commit

Permalink
Set bat and fzf to use Solarized colors
Browse files Browse the repository at this point in the history
  • Loading branch information
vicnett committed Nov 5, 2024
1 parent 0f0c36c commit 3b89e72
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zsh/zshenv
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ export DIFFPROG='nvim -d'
# Ripgrep
export RIPGREP_CONFIG_PATH="$DOTFILES_DIR/ripgreprc"

# Bat theme
export BAT_THEME='Solarized (dark)'

# FZF
export FZF_DEFAULT_COMMAND='fd --type f'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
Expand Down
30 changes: 30 additions & 0 deletions zsh/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,36 @@ WORDCHARS=${WORDCHARS//\/[&.;]}
# Source aliases
source $DOTFILES_DIR/aliases/shell

# Load dircolors
eval `dircolors $DOTFILES_DIR/dircolors.256dark`

# Colors for fzf
# https://github.com/junegunn/fzf/wiki/Color-schemes#alternate-solarized-lightdark-theme
_gen_fzf_default_opts() {
local base03="#002b36"
local base02="#073642"
local base01="#586e75"
local base00="#657b83"
local base0="#839496"
local base1="#93a1a1"
local base2="#eee8d5"
local base3="#fdf6e3"
local yellow="#b58900"
local orange="#cb4b16"
local red="#dc322f"
local magenta="#d33682"
local violet="#6c71c4"
local blue="#268bd2"
local cyan="#2aa198"
local green="#859900"

export FZF_DEFAULT_OPTS="
--color fg:-1,bg:-1,hl:$blue,fg+:$base2,bg+:$base02,hl+:$blue
--color info:$yellow,prompt:$yellow,pointer:$base3,marker:$base3,spinner:$yellow
"
}
_gen_fzf_default_opts

# Source extra local configs
if [[ -d $RCFILES_DIR ]]
then
Expand Down

0 comments on commit 3b89e72

Please sign in to comment.