diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-02-24 22:17:06 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-02-24 22:17:06 +0100 |
| commit | 4fe446437f94e999a180692c9ea69c7075c0f42c (patch) | |
| tree | 80d344ff41536d87b8a0b7ac38c891fff4b1ca5c /config/zsh/zprofile | |
| parent | 468a789dbc4b1928c035d8590895efc533520a27 (diff) | |
| download | dotfiles-4fe446437f94e999a180692c9ea69c7075c0f42c.tar.gz dotfiles-4fe446437f94e999a180692c9ea69c7075c0f42c.tar.bz2 dotfiles-4fe446437f94e999a180692c9ea69c7075c0f42c.zip | |
Fixing everything with the new XDG directories
Diffstat (limited to 'config/zsh/zprofile')
| -rwxr-xr-x | config/zsh/zprofile | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/config/zsh/zprofile b/config/zsh/zprofile new file mode 100755 index 0000000..bd9c23b --- /dev/null +++ b/config/zsh/zprofile @@ -0,0 +1,55 @@ +#!/bin/sh + +export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:$HOME/.local/bin" + +# applications +export EDITOR='vim' +export TERM='st-256color' +export TERMINAL='st' +export MAIL='me@cacharle.xyz' +export BROWSER='qutebrowser' +export BROWSERCLI='w3m' + +# XDG all the things +export XDG_CONFIG_HOME="$HOME/.config" +export XDG_DATA_HOME="$HOME/.local/share" +export XDG_CACHE_HOME="$HOME/.cache" +# config +export ZDOTDIR="$XDG_CONFIG_HOME/zsh" +export XINITRC="$XDG_CONFIG_HOME/x11/xinitrc" +export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC' +# data +export GNUPGHOME="$XDG_DATA_HOME/gnupg" +export GOPATH="$XDG_DATA_HOME/go" +export CARGO_HOME="$XDG_DATA_HOME/cargo" +# cache +export HISTFILE="$XDG_CACHE_HOME/history" +export LESSHISTFILE='-' # no ~/.lesshst +# runtime +export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" + +# color in man (less pager) +export LESS_TERMCAP_mb=$'\e[1;32m' +export LESS_TERMCAP_md=$'\e[1;32m' +export LESS_TERMCAP_me=$'\e[0m' +export LESS_TERMCAP_se=$'\e[0m' +export LESS_TERMCAP_so=$'\e[01;33m' +export LESS_TERMCAP_ue=$'\e[0m' +export LESS_TERMCAP_us=$'\e[1;4;31m' +export LESS_TERMCAP_mr=$(tput rev) +export LESS_TERMCAP_mh=$(tput dim) +export LESS_TERMCAP_ZN=$(tput ssubm) +export LESS_TERMCAP_ZV=$(tput rsubm) +export LESS_TERMCAP_ZO=$(tput ssupm) +export LESS_TERMCAP_ZW=$(tput rsupm) + + +export MINIKUBE_IN_STYLE=false # disable cringe minikube emojies + +# school env +export MINISHELL_TEST_BONUS=yes +export MINISHELL_TEST_PAGER=vim +export MINISHELL_TEST_FLAGS=-DMINISHELL_TEST +export WEBSERV_FLAGS=-DWEBSERV_CACHARLE + +[ "$(tty)" = '/dev/tty1' ] && exec startx |
