Configuration files used by various tools on Linux.
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.

57 lines
1.2KB

  1. #
  2. # ~/.bashrc
  3. #
  4. ## prompt
  5. if [[ ${EUID} == 0 ]] ; then
  6. PS1='\h \[\033[01;36m\]\W \[\033[01;31m\]\$\[\033[00m\] '
  7. else
  8. PS1='\u@\h \[\033[01;36m\]\W \[\033[01;32m\]\$\[\033[00m\] '
  9. fi
  10. ## completion
  11. if [ -f /etc/bash_completion ]; then
  12. . /etc/bash_completion
  13. fi
  14. ## shell options
  15. shopt -s histappend
  16. shopt -s cmdhist
  17. shopt -s checkwinsize
  18. shopt -s expand_aliases
  19. shopt -s globstar
  20. shopt -s checkjobs
  21. ## aliases
  22. alias ..='cd ..'
  23. alias ...='cd ../..'
  24. alias ....='cd ../../..'
  25. alias cp='cp -i'
  26. alias df='df -hx tmpfs'
  27. alias du='du -h'
  28. alias file='file -b'
  29. alias free='free -hw'
  30. alias grep='grep --colour=auto'
  31. alias ls='ls -h --color=auto'
  32. alias l='ls -l'
  33. alias ll='ls -al'
  34. alias mkdir='mkdir -p'
  35. alias nano='vim'
  36. alias pacman='pacman --color=auto'
  37. alias pactree='pactree -c'
  38. alias tree='tree -C'
  39. alias vi='vim'
  40. ## environment
  41. export EDITOR=vim
  42. export HISTSIZE=10000
  43. export HISTCONTROL=ignoredups:ignorespace
  44. export JAVA_HOME=/usr/lib/jvm/default
  45. export KEYMAP=de-latin1
  46. export LANG=en_GB.UTF-8
  47. export LANGUAGE=$LANG
  48. [[ -d "$HOME/bin" ]] && export PATH="$HOME/bin:$PATH"
  49. [[ -d "$HOME/.local/bin" ]] && export PATH="$HOME/.local/bin:$PATH"
  50. export TZ='Europe/Berlin'
  51. export VISUAL=$EDITOR