66 lines
1.9 KiB
Cheetah
66 lines
1.9 KiB
Cheetah
# Wayland #
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
# Wayland
|
|
|
|
# Libvirt
|
|
export LIBVIRT_DEFAULT_URI="qemu:///session"
|
|
# Libvirt #
|
|
|
|
# dotnet #
|
|
export DOTNET_ROOT=/usr/local/share/dotnet
|
|
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=0
|
|
# dotnet #
|
|
|
|
# git-age #
|
|
{{- if eq .chezmoi.os "darwin" }}
|
|
export GIT_AGE_AGENT_HOST="unix://{{ .chezmoi.homeDir }}/Library/Application Support/git-age-keyring-agent.sock"
|
|
{{- else if eq .chezmoi.os "linux" }}
|
|
export GIT_AGE_AGENT_HOST="unix:///run/user/{{ .chezmoi.uid }}/git-age-keyring-agent.sock"
|
|
{{- end }}
|
|
# git-age #
|
|
|
|
# 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 GRAB_HOME={{- .chezmoi.homeDir -}}/sources
|
|
|
|
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 #
|