My dotfiles. Period.

global-before.bashrc 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/bin/bash
  2. #######################################################
  3. ### things to do BEFORE host/user-specific settings ###
  4. #######################################################
  5. ### .... ###
  6. ### BASH ###
  7. ### '''' ###
  8. export HISTCONTROL=$HISTCONTROL${HISTCONTROL+:}ignoredups
  9. export HISTIGNORE=$HISTIGNORE:ls:ll:la:cd
  10. export GLOBIGNORE=.:..
  11. # some more aliases
  12. alias ll='ls -lh'
  13. alias lla='ls -lha'
  14. alias open='gnome-open'
  15. alias diff='diff -u'
  16. alias pad4='sed -e "s/^/ /"'
  17. alias gitka='gitk --all'
  18. alias grepr='grep -nr . -e'
  19. alias sc='se --direction=encz.cz'
  20. ### ...... ###
  21. ### OTHERS ###
  22. ### '''''' ###
  23. export GREP_OPTIONS="--color --binary-files=without-match"
  24. # make green git bash trinket even cooler
  25. export GIT_PS1_SHOWDIRTYSTATE=true
  26. export GIT_PS1_SHOWUNTRACKEDFILES=true
  27. # disable mounting things like SFTP to ~/.gvfs when accessed
  28. # via GIO (used by nautilus etc.)
  29. export GVFS_DISABLE_FUSE=1
  30. # disable the terrible beep sound (only for X; for tty?, blacklist pcspkr)
  31. [[ ${!DISPLAY[@]} ]] && xset b off