dotfiles/.config/shell/profile

54 lines
1.5 KiB
Plaintext
Raw Normal View History

2022-05-27 21:07:07 +02:00
#!/bin/bash
# Default programs:
export BROWSER=firefox
export EDITOR=vim
export FILE=ranger
export IMAGES=feh
export PAGER=less
export TERMINAL=alacritty
export VISUAL=code
# Clean home:
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
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"
export XINITRC="${XDG_CONFIG_HOME:-$HOME/.config}/x11/xinitrc"
export ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
2022-09-07 16:38:31 +02:00
export NVM_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/nvm"
2022-05-27 21:07:07 +02:00
export NUGET_PACKAGES="${XDG_DATA_HOME:-$HOME/.local/share}/nuget"
# Color man pages:
export LESS=-r
export LESS_TERMCAP_mb=$'\E[01;32m'
export LESS_TERMCAP_md=$'\E[01;32m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;47;34m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;36m'
# Other program settings:
export DISPLAY_DPI=96
PATHS=(
"$HOME/bin"
"$HOME/.local/bin"
"$HOME/.cargo/bin"
"${KREW_ROOT:-$HOME/.krew}/bin"
)
for DIR in "${PATHS[@]}"; do
! [ -d "$DIR" ] && continue
2022-06-07 14:46:48 +02:00
export PATH="$PATH:$DIR"
2022-05-27 21:07:07 +02:00
done
2022-05-28 23:00:55 +02:00
# Add the profile-extras file yourself if you wish to override anything:
PROFILE_EXTRAS="${XDG_CONFIG_HOME:-$HOME/.config}/shell/profile-extras"
[ -f "$PROFILE_EXTRAS" ] && . "$PROFILE_EXTRAS"
2022-09-07 16:38:31 +02:00
[ -f "$HOME/homebrew/bin/brew" ] && eval "$("$HOME/homebrew/bin/brew" shellenv)"