81 lines
3.0 KiB
Bash
81 lines
3.0 KiB
Bash
#!/bin/sh
|
||
# env vars to set on login, zsh settings in ~/config/zsh/.zshrc
|
||
# added `export ZDOTDIR="$HOME/.config/zsh"` to /etc/zsh/zshenv in order to place this file at .config/zsh/.zprofile
|
||
# read first
|
||
|
||
debug=0
|
||
|
||
if [ $debug = 1 ]; then echo reading zshrc config from $0
|
||
fi
|
||
|
||
# default programs
|
||
export EDITOR="nvim"
|
||
# export MUSPLAYER="termusic"
|
||
export BROWSER="firefox"
|
||
# export BROWSER2="librewolf"
|
||
# export DISPLAY=:0 # useful for some scripts
|
||
|
||
# follow XDG base dir specification
|
||
export XDG_CONFIG_HOME="$HOME/.config"
|
||
export XDG_DATA_HOME="$HOME/.local/share"
|
||
export XDG_CACHE_HOME="$HOME/.cache"
|
||
|
||
# bootstrap .zshrc to ~/.config/zsh/.zshrc, any other zsh config files can also reside here
|
||
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
|
||
|
||
# history files
|
||
export LESSHISTFILE="$XDG_CACHE_HOME/less_history"
|
||
export PYTHON_HISTORY="$XDG_DATA_HOME/python/history"
|
||
|
||
# add scripts to path
|
||
export PATH="$XDG_CONFIG_HOME/scripts:$PATH"
|
||
export PATH="$PATH:$HOME/.local/share/cargo/bin/"
|
||
|
||
# moving other files and some other vars
|
||
export XINITRC="$XDG_CONFIG_HOME/x11/xinitrc"
|
||
export XPROFILE="$XDG_CONFIG_HOME/x11/xprofile"
|
||
export XREkOURCES="$XDG_CONFIG_HOME/x11/xresources"
|
||
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc-2.0" # gtk 3 & 4 are XDG compliant
|
||
export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
|
||
export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/pythonrc.py"
|
||
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
|
||
export CARGO_HOME="$XDG_DATA_HOME/cargo"
|
||
export GOPATH="$XDG_DATA_HOME/go"
|
||
export GOBIN="$GOPATH/bin"
|
||
export GOMODCACHE="$XDG_CACHE_HOME/go/mod"
|
||
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
|
||
export GRADLE_USER_HOME="$XDG_DATA_HOME/gradle"
|
||
export NUGET_PACKAGES="$XDG_CACHE_HOME/NuGetPackages"
|
||
export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME/java"
|
||
export _JAVA_AWT_WM_NONREPARENTING=1
|
||
export PARALLEL_HOME="$XDG_CONFIG_HOME/parallel"
|
||
export FFMPEG_DATADIR="$XDG_CONFIG_HOME/ffmpeg"
|
||
export WINEPREFIX="$XDG_DATA_HOME/wineprefixes/default"
|
||
export DATE=$(date "+%A, %B %e %_I:%M%P")
|
||
|
||
export FZF_DEFAULT_OPTS="--style minimal --color 16 --layout=reverse --height 30% --preview='bat -p --color=always {}'"
|
||
export FZF_CTRL_R_OPTS="--style minimal --color 16 --info inline --no-sort --no-preview" # separate opts for history widget
|
||
export MANPAGER="nvim '+Man!' -"
|
||
|
||
# colored less + termcap vars
|
||
export LESS="R --use-color -Dd+r -Du+b"
|
||
export LESS_TERMCAP_mb="$(printf '%b' '[1;31m')"
|
||
export LESS_TERMCAP_md="$(printf '%b' '[1;36m')"
|
||
export LESS_TERMCAP_me="$(printf '%b' '[0m')"
|
||
export LESS_TERMCAP_so="$(printf '%b' '[01;44;33m')"
|
||
export LESS_TERMCAP_se="$(printf '%b' '[0m')"
|
||
export LESS_TERMCAP_us="$(printf '%b' '[1;32m')"
|
||
export LESS_TERMCAP_ue="$(printf '%b' '[0m')"
|
||
|
||
#source primary config script
|
||
source $XDG_CONFIG_HOME/zsh/zsh.config
|
||
|
||
# Created by `pipx` on 2026-03-26 01:09:22
|
||
export PATH="$PATH:/home/venus/.local/bin"
|
||
|
||
# Remove the default of run-help being aliased to man
|
||
unalias run-help
|
||
# Use zsh's run-help, which will display information for zsh builtins.
|
||
autoload run-help
|
||
alias help="run-help"
|