My dotfiles. Period.

global-before.bashrc 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 HISTIGNORE="$HISTIGNORE:git ap:git cm:git cma:git dc:git st"
  11. export GLOBIGNORE=.:..
  12. # some more aliases
  13. alias ll='ls -lh'
  14. alias lla='ls -lha'
  15. alias open='gnome-open'
  16. alias diff='diff -u'
  17. alias pad4='sed -e "s/^/ /"'
  18. alias gitka='gitk --all'
  19. alias grepr='grep -nr . -e'
  20. alias sc='se --direction=encz.cz'
  21. ### ...... ###
  22. ### OTHERS ###
  23. ### '''''' ###
  24. export GREP_OPTIONS="--color --binary-files=without-match"
  25. # make green git bash trinket even cooler
  26. export GIT_PS1_SHOWDIRTYSTATE=true
  27. export GIT_PS1_SHOWUNTRACKEDFILES=true
  28. # disable mounting things like SFTP to ~/.gvfs when accessed
  29. # via GIO (used by nautilus etc.)
  30. export GVFS_DISABLE_FUSE=1
  31. # disable the terrible beep sound (only for X; for tty?, blacklist pcspkr)
  32. [[ ${!DISPLAY[@]} ]] && xset b off
  33. # get rid of those .pyc files once and for all
  34. export PYTHONDONTWRITEBYTECODE=1