The configuration of Collin Doering
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
2.1KB

  1. # Check for an interactive session
  2. [ -z "$PS1" ] && return
  3. # Alias' to make command output prettier (use color with some commands by default)
  4. alias ls='ls --color=auto'
  5. alias grep='grep --color=auto'
  6. alias fgrep='fgrep --color-auto'
  7. alias egrep='egrep --color-auto'
  8. alias ncmpc='ncmpc -c'
  9. alias spacman='sudo pacman'
  10. # Alias' to make some commands a little less terse
  11. alias skreen='screen -c /dev/null'
  12. alias tranr='transmission-remote'
  13. alias ctl='systemctl'
  14. alias ctlu='systemctl --user'
  15. alias sctl='sudo systemctl'
  16. alias qemu='qemu-system-x86_64 -enable-kvm'
  17. alias mplayer-ascii='mplayer -vo aa:driver=curses -monitorpixelaspect 0.5 -really-quiet'
  18. alias s='sudo'
  19. # Shortcuts for port-knocking on rekahsoft-mini *DEPRECIATED*
  20. alias knk='knock rekahsoft-mini 7713:tcp 1377:udp && sleep 3s && '
  21. alias knkc='knk ssh rekahsoft-mini '
  22. alias kgit='knk git'
  23. # Set colors to use with grep
  24. export GREP_COLOR="1;33"
  25. # Use source-highlight to make code in less syntax highlighted
  26. export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s"
  27. export LESS=' -R '
  28. # Set text/background colors for ls
  29. export LS_COLORS="di=01;37"
  30. # Set language
  31. # export LANG="en_US.UTF-8"
  32. # export LC_MESSAGES="C"
  33. PS1='[\u@\h: \w]\$ '
  34. # Turn off noscroll
  35. stty stop undef
  36. # Modify path variable to allow execution of the following:
  37. # * mathematica / tools
  38. # * nxclient / associated tools
  39. # * maven tools
  40. export PATH=export PATH=$HOME/.cabal/bin:$HOME/.gem/ruby/2.0.0/bin:$HOME/.bin:$HOME/.texlive/2014/bin/x86_64-linux:${PATH}:/opt/maven/bin:/opt/NX/bin:/usr/lib/smlnj/bin
  41. ctlu import-environment PATH
  42. # Setup smlnj (AUR)
  43. export SMLNJ_HOME="/usr/lib/smlnj"
  44. ctlu import-environment SMLNJ_HOME
  45. # Setup gpg-agent
  46. if [ -f "${HOME}/.gpg-agent-info" ]; then
  47. . "${HOME}/.gpg-agent-info"
  48. export GPG_AGENT_INFO
  49. export SSH_AUTH_SOCK
  50. fi
  51. # start keychain
  52. #eval `keychain --eval --timeout 10 --quiet --agents ssh id_rsa`
  53. # Default editor
  54. export ALTERNATE_EDITOR=""
  55. export EDITOR="emacsclient -t" # $EDITOR should open in terminal
  56. export VISUAL="emacsclient -c -a emacs" # $VISUAL opens in GUI with non-daemon as alternate