1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00
dotfiles/.profile

63 lines
2.0 KiB
Plaintext
Raw Normal View History

2016-04-01 11:45:17 +00:00
export LC_ALL=en_GB.UTF-8
2016-03-31 21:34:07 +00:00
export LANG=en_GB.UTF-8
export LC_NUMERIC=en_GB
2016-03-31 02:03:55 +00:00
2017-11-23 19:15:43 +00:00
export CONFIG_DIR="$HOME/.config"
export XDG_CONFIG_HOME="$CONFIG_DIR"
export DOTFILES="$(dirname "$(readlink -m "$0")")"
2016-03-31 02:03:55 +00:00
export PATH="${PATH}:$DOTFILES/scripts"
2016-04-19 16:12:23 +00:00
export XDG_CURRENT_DESKTOP="GNOME" # Fixes xdg-open
2016-03-31 02:03:55 +00:00
2017-11-23 19:15:43 +00:00
# Allow Vim to load from ~/.config/vim
2017-12-18 16:53:43 +00:00
export VIMDIR="$CONFIG_DIR/vim"
export MYVIMRC="$VIMDIR/vimrc"
2017-11-23 19:15:43 +00:00
export VIMINIT=":so $MYVIMRC"
2016-03-31 02:03:55 +00:00
export EDITOR="vim"
export VISUAL="vim"
2017-12-11 14:16:13 +00:00
export MANPAGER="less -+N"
2016-05-16 16:43:27 +00:00
export TERMINAL="termite"
2016-09-01 13:15:31 +00:00
export BROWSER="chromium"
2016-03-31 02:03:55 +00:00
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel"
export QT_QPA_PLATFORMTHEME=gtk2
2018-03-29 10:10:36 +00:00
export GOPATH="$HOME/.cache/go"
2016-07-19 22:33:03 +00:00
2018-02-27 01:38:51 +00:00
export LESS="-RNI"
export PAGER="less $LESS"
export LESS_TERMCAP_mb=$(tput bold; tput setaf 2) # green
export LESS_TERMCAP_md=$(tput bold; tput setaf 6) # cyan
export LESS_TERMCAP_me=$(tput sgr0)
export LESS_TERMCAP_so=$(tput bold; tput setaf 4) # blue
export LESS_TERMCAP_se=$(tput rmso; tput sgr0)
export LESS_TERMCAP_us=$(tput smul; tput bold; tput setaf 7) # white
export LESS_TERMCAP_ue=$(tput rmul; tput sgr0)
export LESS_TERMCAP_mr=$(tput rev)
export LESS_TERMCAP_mh=$(tput dim)
export LESS_TERMCAP_ZN=$(tput ssubm)
export LESS_TERMCAP_ZV=$(tput rsubm)
export LESS_TERMCAP_ZO=$(tput ssupm)
export LESS_TERMCAP_ZW=$(tput rsupm)
2017-10-03 08:34:02 +00:00
# Source secret keys and values into environment
if [ -f "$CONFIG_DIR/secrets" ]; then
set -o allexport
source $CONFIG_DIR/secrets
set +o allexport
fi
# Merge system clipboards
if [ -n "$DISPLAY" ] && which autocutsel >/dev/null 2>&1; then
autocutsel -fork
autocutsel -selection PRIMARY -fork
fi
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && which dbus-launch >/dev/null 2>&1; then
eval $(dbus-launch --sh-syntax --exit-with-session)
dbus-update-activation-environment --systemd DISPLAY
fi
# Start the gnome-keyring if it's installed
if which gnome-keyring-daemon >/dev/null 2>&1; then
export $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gnupg)
fi