Dotfiles from time before I knew the word dotfiles, but the name has stuck.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.1KB

  1. # Set PATH properly
  2. 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
  3. # Add RubyGems to PATH
  4. if hash ruby 2>/dev/null; then
  5. PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH"
  6. fi
  7. # Set compose to menu, kill X with ctrl-alt-backspace,
  8. # disable nbsp (still available with compose-space-space)
  9. setxkbmap -option compose:menu -option terminate:ctrl_alt_bksp -option nbsp:none
  10. # Removes duplicates from $PATH. Copied from http://unix.stackexchange.com/a/14896
  11. PATH=$(echo "$PATH" | awk -v RS=':' -v ORS=":" '!a[$1]++{if (NR > 1) printf ORS; printf $a[$1]}')
  12. # Start gpg-agent
  13. # Ubuntu (MATE) 18.04 doesn't appreciate this
  14. #eval $(gpg-agent --daemon)
  15. # Enable core files.
  16. ulimit -c unlimited
  17. # Numlock on at boot
  18. if hash numlockx 2>/dev/null; then
  19. numlockx on
  20. fi
  21. # Workaround disappearing cursors, probably no harm in any case
  22. export XCURSOR_DISCOVER=1
  23. # The environment was set to ~/.environment according to other files...
  24. if [ -f ~/.environment ]; then
  25. . ~/.environment
  26. fi