2015-08-28 18:17:08 +02:00
|
|
|
# Set PATH properly
|
2019-02-17 20:58:53 +01:00
|
|
|
PATH=$HOME/.local/bin:$HOME/bin:$HOME/go/bin:$HOME/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/snap/bin:/usr/local/bin:/usr/local/sbin:/usr/local/games:/usr/bin:/usr/sbin:/usr/games:/bin:/sbin:/games:$PATH
|
2015-08-28 18:17:08 +02:00
|
|
|
|
|
|
|
# Add RubyGems to PATH
|
|
|
|
if hash ruby 2>/dev/null; then
|
|
|
|
PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH"
|
|
|
|
fi
|
|
|
|
|
2017-09-18 21:05:12 +02:00
|
|
|
# Set compose to menu, kill X with ctrl-alt-backspace,
|
2019-02-04 19:33:31 +01:00
|
|
|
# disable nbsp (still available with compose-space-space)
|
|
|
|
setxkbmap -option compose:menu -option terminate:ctrl_alt_bksp -option nbsp:none
|
2015-08-28 18:17:08 +02:00
|
|
|
|
|
|
|
# Removes duplicates from $PATH. Copied from http://unix.stackexchange.com/a/14896
|
|
|
|
PATH=$(echo "$PATH" | awk -v RS=':' -v ORS=":" '!a[$1]++{if (NR > 1) printf ORS; printf $a[$1]}')
|
|
|
|
|
|
|
|
# Start gpg-agent
|
2018-04-26 11:30:30 +02:00
|
|
|
# Ubuntu (MATE) 18.04 doesn't appreciate this
|
|
|
|
#eval $(gpg-agent --daemon)
|
2015-08-28 18:17:08 +02:00
|
|
|
|
|
|
|
# Enable core files.
|
|
|
|
ulimit -c unlimited
|
|
|
|
|
2015-12-15 19:05:55 +01:00
|
|
|
# Numlock on at boot
|
2018-09-06 12:22:15 +02:00
|
|
|
if hash numlockx 2>/dev/null; then
|
|
|
|
numlockx on
|
|
|
|
fi
|
2015-08-28 18:17:08 +02:00
|
|
|
|
2016-04-15 20:15:06 +02:00
|
|
|
# Workaround disappearing cursors, probably no harm in any case
|
|
|
|
export XCURSOR_DISCOVER=1
|
|
|
|
|
2015-08-28 18:17:08 +02:00
|
|
|
# The environment was set to ~/.environment according to other files...
|
|
|
|
if [ -f ~/.environment ]; then
|
|
|
|
. ~/.environment
|
|
|
|
fi
|