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.

73 lines
1.3 KiB

16 years ago
16 years ago
16 years ago
16 years ago
16 years ago
16 years ago
16 years ago
  1. export LANG="en_GB.UTF-8"
  2. echo ".bashrc: TERM:$TERM ${PS1:+INTERACTIVE}" >&2
  3. # $HOME/bin
  4. #
  5. if [ ! -d "$HOME/bin" ]; then
  6. set -x
  7. mkdir "$HOME/bin"
  8. if [ "$PATH" == "${PATH//$HOME\/bin/}" ]; then
  9. export PATH="$HOME/bin:$PATH"
  10. fi
  11. set +x
  12. fi
  13. # GPG
  14. #
  15. if [ ! -x "$(type -p gpg-agent)" ]; then
  16. :
  17. elif test -f "$HOME/.gpg-agent-info" &&
  18. kill -0 $(cut -d: -f2 "$HOME/.gpg-agent-info" 2> /dev/null ) 2> /dev/null; then
  19. . "$HOME/.gpg-agent-info"
  20. export GPG_TTY=$(tty)
  21. else
  22. eval $(gpg-agent --daemon --log-file "$HOME/.gpg-agent.log" \
  23. --write-env-file "$HOME/.gpg-agent-info" 2> /dev/null)
  24. export GPG_TTY=$(tty)
  25. fi
  26. # ssh wrapper
  27. #
  28. if [ -s "$HOME/bin/ssh" ]; then
  29. SSH="$HOME/bin/ssh"
  30. else
  31. SSH=ssh
  32. fi
  33. for x in GIT_SSH; do
  34. eval export $x=$SSH
  35. done
  36. # other apps chosen by env
  37. #
  38. export BROWSER=links
  39. export EDITOR=vim
  40. # tweak your bash
  41. #
  42. export HISTFILESIZE=50
  43. export HISTCONTROL=ignoredups
  44. # interactive prompt
  45. if [ -n "$PS1" ]; then
  46. # support resize, please
  47. shopt -s checkwinsize
  48. # get a nicer $PS1
  49. [ -s $HOME/.bash/prompt.in ] && . $HOME/.bash/prompt.in
  50. # aliases
  51. #
  52. alias ls='ls --color=auto'
  53. alias l='ls -avhlF'
  54. [ "$(type -t ll)" = alias ] && unalias ll
  55. function ll() { ls -avhlF $* | less; }
  56. fi
  57. # local settings
  58. [ -s $HOME/.bash/local.in ] && . $HOME/.bash/local.in