44 lines
1.6 KiB
Bash
44 lines
1.6 KiB
Bash
#!/bin/zsh
|
||
|
||
# profile file. Runs on login. Environmental variables are set here.
|
||
|
||
# Adds `~/.local/bin` to $PATH
|
||
export PATH="$PATH:${$(find -L ~/.local/bin -type d -printf %p:)%%:}"
|
||
|
||
# Adds `~/.local/share/npm-global` to $PATH
|
||
export PATH=~/.npm-global/bin:$PATH
|
||
|
||
unsetopt PROMPT_SP
|
||
|
||
# Default programs:
|
||
export EDITOR="nvim"
|
||
|
||
# ~/ Clean-up:
|
||
export XDG_CONFIG_HOME="$HOME/.config"
|
||
export XDG_DATA_HOME="$HOME/.local/share"
|
||
export XDG_CACHE_HOME="$HOME/.cache"
|
||
export PYENVS_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/pyenvs"
|
||
export LESSHISTFILE="-"
|
||
export WGETRC="${XDG_CONFIG_HOME:-$HOME/.config}/wget/wgetrc"
|
||
export INPUTRC="${XDG_CONFIG_HOME:-$HOME/.config}/shell/inputrc"
|
||
export ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
|
||
export ZSH_COMPDUMP="${XDG_CACHE_HOME:-$HOME/.cache}/zcompdump"
|
||
export GNUPGHOME="${XDG_CONFIG_HOME:-$HOME/.config}/gnupg"
|
||
export TMUX_TMPDIR="$XDG_RUNTIME_DIR"
|
||
export CARGO_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/cargo"
|
||
export GOPATH="${XDG_DATA_HOME:-$HOME/.local/share}/go"
|
||
export HISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}/history"
|
||
|
||
# Other program settings:
|
||
export FZF_DEFAULT_OPTS="--layout=reverse --height 40%"
|
||
export LESS=-R
|
||
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')"
|
||
export LESSOPEN="| /usr/bin/highlight -O ansi %s 2>/dev/null"
|
||
# export VIRTUAL_ENV_DISABLE_PROMPT=1
|
||
export PYENV_PROMPT=" %F{yellow\}%F{reset\} "
|