bash-setup-generic.sh 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # don't put duplicate lines or lines starting with space in the history.
  2. # See bash(1) for more options
  3. HISTCONTROL=ignoreboth
  4. # append to the history file, don't overwrite it
  5. shopt -s histappend
  6. #!/bin/bash
  7. DEBUG=1
  8. [ -n "$DEBUG" ] && echo debug $0 >&2
  9. # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
  10. HISTSIZE=10000
  11. HISTFILESIZE=50000
  12. # check the window size after each command and, if necessary,
  13. # update the values of LINES and COLUMNS.
  14. shopt -s checkwinsize
  15. # If set, the pattern "**" used in a pathname expansion context will
  16. # match all files and zero or more directories and subdirectories.
  17. #shopt -s globstar
  18. # make less more friendly for non-text input files, see lesspipe(1)
  19. #[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
  20. # Alias definitions.
  21. # You may want to put all your additions into a separate file like
  22. # ~/.bash_aliases, instead of adding them here directly.
  23. # See /usr/share/doc/bash-doc/examples in the bash-doc package.
  24. if [ -f ~/.bash_aliases ]; then
  25. . ~/.bash_aliases
  26. fi
  27. # enable programmable completion features (you don't need to enable
  28. # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
  29. # sources /etc/bash.bashrc).
  30. if ! shopt -oq posix; then
  31. if [ -f /usr/share/bash-completion/bash_completion ]; then
  32. . /usr/share/bash-completion/bash_completion
  33. elif [ -f /etc/bash_completion ]; then
  34. . /etc/bash_completion
  35. fi
  36. fi
  37. # Do something only on specific hosts
  38. only_at_home="ralf-21kscto1ww"
  39. if [ "$(hostname -f)" == "ralf-21kscto1ww" ]; then
  40. export SSH_AUTH_SOCK="$HOME/.bitwarden-ssh-agent.sock"
  41. fi