.zshrc 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Lines configured by zsh-newuser-install
  2. # obsolete, use mksh
  3. HISTFILE=~/.histfile
  4. HISTSIZE=1000
  5. SAVEHIST=1000
  6. #bindkey -v
  7. # End of lines configured by zsh-newuser-install
  8. # The following lines were added by compinstall
  9. zstyle :compinstall filename '/home/noby/.zshrc'
  10. autoload -Uz compinit
  11. compinit
  12. # End of lines added by compinstal
  13. # custom binding for ALT+BKSP
  14. backward-kill-dir () {
  15. local WORDCHARS=${WORDCHARS/\/}
  16. zle backward-kill-word
  17. }
  18. zle -N backward-kill-dir
  19. bindkey '^[^?' backward-kill-dir
  20. # custom bindings for ALT+LEFT/RIGHT
  21. ## use Ctrl <- and Ctrl -> for jumping to word-beginnings on the CL
  22. bindkey "^[[1;5C" forward-word
  23. bindkey "^[[1;5D" backward-word
  24. ## the same for alt-left-arrow and alt-right-arrow
  25. bindkey '^[[1;3C' forward-word
  26. bindkey '^[[1;3D' backward-word
  27. # begone, xfce4
  28. # you will be remembered
  29. # alias sx='startxfce4'
  30. # bash variant
  31. #PS1='\[\e[1;35m\][\u\[\e[34m\]@\[\e[35m\]\h \[\e[34m\]\w\[\e[35m\]]\$\[\e[0m\] '
  32. # zsh variant
  33. #PROMPT="%B%{%F{207}%}[%n%f%F{39}@%{%F{207}%}%m %F{39}%0~%F{207}]$ %F{39}%b"
  34. #PROMPT="%B%{%F{244}%}[%n%f%F{253}@%{%F{244}%}%m %F{253}%0~%F{244}]$ %F{253}%b"
  35. #PROMPT="%B%{%F{244}%}[%n%f%F{253}@%{%F{244}%}%m %F{104}%0~%F{244}]$ %F{213}%b"
  36. PROMPT="%B %F{104}%0~ %F{213}%b"
  37. #export EDITOR=vis
  38. # already done in /etc/profile
  39. alias vim=vis
  40. alias v=vis
  41. alias nstartx=nvidia-xrun
  42. alias gsacp=gsacp.sh
  43. alias soku=soku.sh
  44. # OpenFOAM Install
  45. #export FOAM_INST_DIR='/opt/OpenFOAM/OpenFOAM-5.0/'
  46. #alias of50x='source $FOAM_INST_DIR/etc/bashrc'
  47. #. $FOAM_INST_DIR/etc/bashrc
  48. #export WM_PROJECT_DIR=$FOAM_INST_DIR
  49. # JAVA
  50. JAVA_HOME="/usr/lib/jvm/java-8-openjdk"
  51. _get_WP() {
  52. wall=~/.config/walls/wall$[RANDOM % $(ls ~/.config/walls/ | wc -l) + 1].png
  53. echo $wall
  54. }
  55. reroll() {
  56. feh --bg-fill $(_get_WP)
  57. }