.profile: Move desktop-specific vars to .config/profile.d
This commit is contained in:
parent
92f87bbadd
commit
3050db0a9b
4 changed files with 38 additions and 19 deletions
37
.profile
37
.profile
|
|
@ -1,30 +1,33 @@
|
|||
#
|
||||
# ~/.profile -- Included by .bash_profile; includes ~/.profile.local
|
||||
# ~/.profile -- Included by .bash_profile, i.e. sourced in login shells.
|
||||
# Includes ~/.config/profile.d/*
|
||||
#
|
||||
|
||||
# SSH key agent
|
||||
[[ -e "$XDG_RUNTIME_DIR/gcr/ssh" ]] && export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gcr/ssh"
|
||||
|
||||
# GPG key stuff
|
||||
export GPG_TTY=$(tty)
|
||||
|
||||
# Environment variables
|
||||
# Set terminal type to support colors
|
||||
export TERM=xterm-color
|
||||
export TERMINAL=mate-terminal
|
||||
export EDITOR=vim
|
||||
export BROWSER=firefox
|
||||
export BC_ENV_ARGS="-lq"
|
||||
[[ -f "$HOME/.bcrc" ]] && export BC_ENV_ARGS="$BC_ENV_ARGS $HOME/.bcrc"
|
||||
|
||||
# PATH
|
||||
# Preferred editor
|
||||
export EDITOR=vim
|
||||
|
||||
# Set PATH
|
||||
[[ -d "$HOME/.local/bin" ]] && export PATH="$HOME/.local/bin:$PATH"
|
||||
[[ -d "$HOME/bin" ]] && export PATH="$HOME/bin:$PATH"
|
||||
|
||||
# Wine: do not change filetype associations
|
||||
export WINEDLLOVERRIDES=winemenubuilder.exe=d
|
||||
# Settings for bc
|
||||
export BC_ENV_ARGS="-lq"
|
||||
[[ -f "$HOME/.bcrc" ]] && export BC_ENV_ARGS="$BC_ENV_ARGS $HOME/.bcrc"
|
||||
|
||||
# Firefox: Enable pixel-perfect scrolling
|
||||
export MOZ_USE_XINPUT2=1
|
||||
# Include drop-in files
|
||||
if [[ -d ~/.config/profile.d ]]; then
|
||||
for f in ~/.config/profile.d/*; do
|
||||
[[ -f $f ]] && source "$f"
|
||||
done
|
||||
fi
|
||||
|
||||
# Include host-specific .profile
|
||||
[ -f ~/.profile.local ] && source ~/.profile.local
|
||||
# Deprecation warning for .profile.local
|
||||
if [[ -e ~/.profile.local ]]; then
|
||||
echo "WARNING: ~/.profile.local is ignored, please use ~/.config/profile.d/ instead."
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue