~yerinalexey/dotfiles

ref: 8579758ddf3d8383f2ea9cad38fab11934bc456e dotfiles/zsh/profile.zsh -rw-r--r-- 1.5 KiB
8579758dAlexey Yerin scripts/xdg-open: fix terminal command for foot 5 months ago
                                                                                
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
# Global variables
# Copy to ~/.zprofile

# XDG dirs
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"

# Defaults
export BROWSER=qutebrowser
export TERMINAL=foot
export READER=zathura
export EDITOR=nvim
export IMAGE=imv
export VIDEO=mpv

# Global bemenu config
background='#191f24'
foreground='#eeeeee'
primary='#265abc'

export BEMENU_OPTS="--fn 'monospace 13' -n \
	--nb=${background} \
	--fb=${background} \
	--ff=${foreground} \
	--tb=${primary} \
	--tf=${foreground} \
	--hb=#313131 \
	--hf=#638cda"

# Clean up the home directory
export RUSTUP_HOME="$XDG_DATA_HOME/rustup"
export CARGO_HOME="$XDG_DATA_HOME/cargo"
export GOPATH="$XDG_DATA_HOME/go"

export PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store"
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc"

export PSQLRC="$XDG_CONFIG_HOME/psql/psqlrc"
export PSQL_HISTORY="$XDG_CACHE_HOME/psql-history"

export WEECHAT_HOME="$XDG_CONFIG_HOME/weechat"

# Binaries and stuff
export PATH="$XDG_CONFIG_HOME/scripts:$PATH"
export PATH="$PATH:$HOME/.local/bin"
export PATH="$PATH:$CARGO_HOME/bin"

# Fix psql
# (At least in Artix) unix_socket_directory is set to /run/postgresql
# and not /tmp which psql doesn't know about
export PGHOST='/run/postgresql'

# Fix less
export LESS="-cR"
export LESSHISTFILE=-

# Devlog stuff
export DEVLOG_REPO="$HOME/todo"

# Use nvim to view man pages
export MANPAGER="nvim +'set ft=man' -"