-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env
65 lines (48 loc) · 1.53 KB
/
.env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# a few environment tweaks
# make zsh tabcompletion work with delta
compdef _gnu_generic delta
# init zoxide
eval "$(zoxide init zsh)"
# use pspg as pager in psql
export PSQL_PAGER='pspg -X -b'
# add tfswitch bin dir to PATH
# export PATH="$PATH:/home/zander/bin"
# add doomemacs to path
export PATH="$HOME/.config/emacs/bin:$PATH"
# add tofuenv to path
export PATH="$HOME/.tofuenv/bin:$PATH"
# add krew plugins to path
export PATH="${PATH}:${HOME}/.krew/bin"
# use fd to supply input for fzf, show hidden files, do not include .git/*
export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
# set pager for github cli
export GH_PAGER="cat"
# set colorscheme for bat
export BAT_THEME="OneHalfDark"
# configure pfetch
export PF_INFO="ascii title os kernel uptime wm shell editor palette"
# python virtualenv home // where to look for venvs
export WORKON_HOME="/home/zander/.virtualenvs"
# set default applications
export EDITOR="nvim"
export VISUAL="nvim"
export READER="zathura"
export TERMINAL="alacritty"
export BROWSER="firefox"
export PAGER="less"
# set dark/light theme for neovim
export NVIM_BACKGROUND="dark"
# opt out of dotnet telemetry
export DOTNET_CLI_TELEMETRY_OPTOUT=1
# add local bin to path
export PATH="$PATH:/home/zander/.local/bin"
# wrapper function to start yazi
function yy() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")"
yazi "$@" --cwd-file="$tmp"
if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
cd -- "$cwd"
fi
rm -f -- "$tmp"
}