34 lines
1.3 KiB
Bash
34 lines
1.3 KiB
Bash
# shellcheck shell=bash
|
|
# shellcheck disable=1091
|
|
#
|
|
# ~/.bash_profile
|
|
# sourced upon new login shells
|
|
#
|
|
|
|
# https://specifications.freedesktop.org/basedir-spec/latest/
|
|
export XDG_CONFIG_HOME="$HOME/.config" # where user configuration files are stored (default: ~/.config)
|
|
export XDG_STATE_HOME="$HOME/.local/state" # state data that should persist between (application) restarts, but not important enough to be stored in XDG_DATA_HOME (default: ~/.local/state)
|
|
export XDG_DATA_HOME="$HOME/.local/share" # where user data files are stored (default: ~/.local/share)
|
|
export PATH="$HOME/bin:$PATH" # add our bin in front of PATH, making it take precedence
|
|
|
|
if which nvim 1>/dev/null; then
|
|
export EDITOR=nvim # use neovim as an editor
|
|
export VISUAL=nvim # use neovim for visual-based editors
|
|
export MANPAGER='nvim +Man!' # use neovim as a manual pager
|
|
fi
|
|
|
|
# coloured GCC warnings and errors
|
|
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
|
|
|
# # export Microsoft's bullshit outta here
|
|
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
|
export VCPKG_DISABLE_METRICS=1
|
|
export VCPKG_ROOT="$XDG_DATA_HOME/vcpkg"
|
|
export PATH+=":$VCPKG_ROOT"
|
|
|
|
# if executing interactively
|
|
# execute .bashrc in the current login context
|
|
[[ $- != *i* ]] && return
|
|
[[ -z ${PS1-} ]] && retrun
|
|
[[ -f $HOME/.bashrc ]] && . "$HOME/.bashrc"
|