dotfiles/dot_config/zsh/01-env.zsh

64 lines
1.7 KiB
Bash
Raw Normal View History

2023-10-10 20:22:26 +00:00
# Directories {{{ #
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
export XDG_CACHE_HOME=$HOME/.cache
export XDG_DATA_HOME=$HOME/.local/share
export XDG_STATE_HOME=$HOME/.local/state
# }}} Directories #
# Wayland {{{{ #
export _JAVA_AWT_WM_NONREPARENTING=1
# }}}} Wayland
# Libvirt {{{{
export LIBVIRT_DEFAULT_URI="qemu:///session"
# }}}} Libvirt #
# dotnet {{{ #
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
# }}} dotnet #
# Env Programs {{{ #
export EDITOR=nvim
export BROWSER=/usr/bin/firefox
export GIT_EDITOR=nvim
export VISUAL=nvim
export TERMINAL=alacritty
export SOPS_GPG_EXEC=gpg2
export CHROME_EXECUTABLE=/usr/bin/chromium
export TERM="xterm-256color"
# }}} Env Programs #
# bat settings {{{ #
export BAT_THEME="Solarized (dark)"
export BAT_STYLE="full"
# }}} bat #
# fzf settings {{{ #
_fzf_compgen_path() {
fd --hidden --follow --exclude ".git" --exclude ".wine" . "$1"
}
# Use fd to generate the list for directory completion
_fzf_compgen_dir() {
fd --type d --hidden --follow --exclude ".git" . "$1"
}
export FZF_DEFAULT_COMMAND='fd --hidden --follow --type f --exclude .git --exclude .wine'
export FZF_TMUX=1
export FZF_TMUX_HEIGHT=30\%
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_ALT_C_COMMAND='command cat <(fd -t d --exclude .git --exclude .wine) <(fd -t d --hidden --follow --exclude .git --exclude .wine . ~)'
export FZF_ALT_C_OPTS="--preview '(highlight -O ansi -l {} 2> /dev/null || cat {} || tree -C {}) 2> /dev/null | head -200'"
# }}} fzf settings #
# History {{{ #
[ -z "$HISTFILE" ] && HISTFILE="$HOME/.cache/zsh/history"
[ ! -d $(dirname $HISTFILE) ] && mkdir -p $(dirname $HISTFILE)
export HISTSIZE=10000
export SAVEHIST=10000
# }}} History #
# ZSH options {{{{ #
setopt autocd
# }}}} ZSH options #