dotfiles/dot_config/zsh/01-env.zsh.tmpl

59 lines
1.5 KiB
Cheetah
Raw Normal View History

2023-10-25 06:25:33 +00:00
# Wayland #
2023-10-10 20:22:26 +00:00
export _JAVA_AWT_WM_NONREPARENTING=1
2023-10-25 06:25:33 +00:00
# Wayland
2023-10-10 20:22:26 +00:00
2024-01-20 11:25:55 +00:00
# Libvirt
2023-10-10 20:22:26 +00:00
export LIBVIRT_DEFAULT_URI="qemu:///session"
2023-10-25 06:25:33 +00:00
# Libvirt #
2023-10-10 20:22:26 +00:00
2023-10-25 06:25:33 +00:00
# dotnet #
2024-06-18 15:43:37 +00:00
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0
2023-10-25 06:25:33 +00:00
# dotnet #
2023-10-10 20:22:26 +00:00
2023-10-25 06:25:33 +00:00
# Env Programs #
2023-10-10 20:22:26 +00:00
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"
2023-10-25 06:25:33 +00:00
# Env Programs #
2023-10-10 20:22:26 +00:00
2023-10-25 06:25:33 +00:00
# bat settings #
2023-10-10 20:22:26 +00:00
export BAT_THEME="Solarized (dark)"
export BAT_STYLE="full"
2023-10-25 06:25:33 +00:00
# bat #
2023-10-10 20:22:26 +00:00
2023-10-25 06:25:33 +00:00
# fzf settings #
2023-10-10 20:22:26 +00:00
_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"
}
2024-01-17 18:42:00 +00:00
export GRAB_HOME={{- .chezmoi.homeDir -}}/sources
2023-10-10 20:22:26 +00:00
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'"
2023-10-25 06:25:33 +00:00
# fzf settings #
2023-10-10 20:22:26 +00:00
2023-10-25 06:25:33 +00:00
# History #
2023-10-10 20:22:26 +00:00
[ -z "$HISTFILE" ] && HISTFILE="$HOME/.cache/zsh/history"
[ ! -d "$(dirname "$HISTFILE")" ] && mkdir -p "$(dirname "$HISTFILE")"
2023-10-10 20:22:26 +00:00
export HISTSIZE=10000
export SAVEHIST=10000
2023-10-25 06:25:33 +00:00
# History #
2023-10-10 20:22:26 +00:00
2023-10-25 06:25:33 +00:00
# ZSH options #
2023-10-10 20:22:26 +00:00
setopt autocd
2023-10-25 06:25:33 +00:00
# ZSH options #