dotfiles/dot_config/zsh/01-env.zsh.tmpl
2023-10-25 08:25:33 +02:00

56 lines
1.5 KiB
Cheetah

# 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 #