bashrc 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. export LANGUAGE=en_US.UTF-8
  2. export LANG=en_US.UTF-8
  3. export LC_ALL=en_US.UTF-8
  4. export XDG_CONFIG_HOME="$HOME/.config"
  5. export XDG_CACHE_HOME="$HOME/.cache"
  6. export XDG_DATA_HOME="$HOME/.local/share"
  7. export BROWSER="firefox"
  8. # If not running interactively, don't do anything
  9. [ -z "$PS1" ] && return
  10. # I'm a bad speller.
  11. shopt -s autocd cdspell dirspell globstar
  12. # History
  13. shopt -s histappend # append to history
  14. HISTCONTROL=ignoredups:ignorespace # ignore spaces and duplicates
  15. HISTSIZE=10000 # Up the history commands to remember to 10,000
  16. HISTFILESIZE=20000 # Up the history to store to 20,000
  17. HISTTIMEFORMAT='%F %T%z '
  18. # update the values of LINES and COLUMNS.
  19. shopt -s checkwinsize
  20. # make less more friendly for non-text input files, see lesspipe(1)
  21. [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
  22. # set variable identifying the chroot you work in (used in the prompt below)
  23. if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
  24. debian_chroot=$(cat /etc/debian_chroot)
  25. fi
  26. # set a fancy prompt (non-color, unless we know we "want" color)
  27. case "$TERM" in
  28. *color*) color_prompt=yes;;
  29. rxvt-unicode) color_prompt=yes;;
  30. esac
  31. test -r "$HOME/srv/art/motd/$(hostname -s)_motd" \
  32. && test "$color_prompt" = "yes" \
  33. && cat "$HOME/srv/art/motd/$(hostname -s)_motd"
  34. for file in ~/.{bash_prompt,exports,aliases,functions}; do
  35. [ -r "$file" ] && . "$file"
  36. done
  37. unset file
  38. # set iterm2 key profile for option key to +Esc
  39. # if [[ "$(uname -s)" == 'Darwin' ]]; then
  40. # set -o vi
  41. # bind -m vi-insert "\C-l":clear-screen
  42. # fi
  43. BASE16_SHELL=$HOME/.config/base16-shell/
  44. [ -s $BASE16_SHELL/profile_helper.sh ] && eval "$($BASE16_SHELL/profile_helper.sh)"
  45. [ -f ~/.fzf.bash ] && source ~/.fzf.bash