SHARE
TWEET

.zshrc

jv2112 Aug 22nd, 2015 144 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # The following lines were added by compinstall
  2.  
  3. zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate
  4. zstyle :compinstall filename '/home/joe/.zshrc'
  5.  
  6. autoload -Uz compinit
  7. compinit
  8. # End of lines added by compinstall
  9. # Lines configured by zsh-newuser-install
  10. HISTFILE=~/.histfile
  11. setopt appendhistory beep notify
  12. # End of lines configured by zsh-newuser-install
  13.  
  14.  
  15. autoload -Uz promptinit
  16. promptinit
  17. prompt adam2
  18.  
  19.  
  20. # key bindings
  21. bindkey "\e[1~" beginning-of-line
  22. bindkey "\e[4~" end-of-line
  23. bindkey "\e[5~" beginning-of-history
  24. bindkey "\e[6~" end-of-history
  25. bindkey "\e[3~" delete-char
  26. bindkey "\e[2~" quoted-insert
  27. bindkey "\e[5C" forward-word
  28. bindkey "\eOc" emacs-forward-word
  29. bindkey "\e[5D" backward-word
  30. bindkey "\eOd" emacs-backward-word
  31. bindkey "\ee[C" forward-word
  32. bindkey "\ee[D" backward-word
  33. bindkey "^H" backward-delete-word
  34. # for rxvt
  35. bindkey "\e[8~" end-of-line
  36. bindkey "\e[7~" beginning-of-line
  37. # for non RH/Debian xterm, can't hurt for RH/DEbian xterm
  38. bindkey "\eOH" beginning-of-line
  39. bindkey "\eOF" end-of-line
  40. # for freebsd console
  41. bindkey "\e[H" beginning-of-line
  42. bindkey "\e[F" end-of-line
  43. # completion in the middle of a line
  44. bindkey '^i' expand-or-complete-prefix
  45.  
  46.  
  47.  
  48.  
  49. # color for ls
  50. if [[ -x "`whence -p dircolors`" ]]; then
  51. eval `dircolors`
  52. alias ls='ls -F --color=auto'
  53. else
  54. alias ls='ls -F'
  55. fi
  56.  
  57. # suffix alias
  58.  
  59. alias -s txt=gedit
  60. #alias -s sh=vim
  61. alias -s mp3=ncmpcpp
  62. alias -s jpg=gpicview
  63. export PANNEL_FIFO="/tmp/pannel-fifo"
  64.  
  65.  
  66. # Uncomment the following line if you want to change the command execution time
  67. # stamp shown in the history command output.
  68. # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
  69.  HIST_STAMPS="mm/dd/yyyy"
  70.  
  71.  
  72.  
  73. # User configuration
  74.  
  75. export PATH="/usr/local/sbin:/usr/lib:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/joe/Scripts:/home/joe/bin:/var/run/user/1000/gvfs/:/usr/bin/core_perl"
  76.  
  77.  
  78.  
  79. # Options
  80.  
  81.  
  82. setopt extendedglob # ERE
  83. setopt correctall
  84. setopt sharehistory
  85. setopt extendedhistory
  86. setopt hist_ignore_all_dups
  87.  
  88.  
  89. # Joe Mods -- Bashrc import
  90. alias sudo='sudo -E' # Perserves environment so you can use ~user/.vimrc
  91. alias ls='ls --color=auto'
  92. alias grep -E='grep -E --color=auto'
  93. alias grep='grep --color=auto'
  94. alias fgrep='fgrep --color=auto'
  95. alias egrep='egrep --color=auto'
  96. alias vi="vim"
  97. alias pacman="sudo pacman"
  98. alias tunes="ncmpcpp"
  99. alias youtube-dl="youtube-dl -ci -o '%(title)s-%(upload_date)s-%(ext)s'"
  100. alias df='df -hTl -x tmpfs -x devtmpfs --total'
  101.  
  102. # Geeknote
  103.  
  104. alias gn-all='geeknote find --search "*"'
  105. alias gn='geeknote'
  106. alias gne='geeknote edit'
  107. alias gns='geeknote find --search'
  108.  
  109. HISTCONTROL=erasedups
  110. PROMPT_COMMAND='history -a; history -n' # write command to histopry when issued as opposed to the default end of session.
  111. HISTFILESIZE=5000
  112. HISTSIZE=5000
  113.  
  114. EDITOR=vim; export $EDITOR
  115.  
  116. # Functions ---
  117.  
  118.  
  119.  
  120. up ()
  121.         {
  122.         sudo yaourt -Syy
  123.         sudo yaourt -Syu
  124.         sudo pacman -Syc
  125.         sudo pacman -R $(sudo pacman -Qtdq)
  126. }
  127.  
  128. Family-Tux ()
  129.         {
  130.         clear
  131.         figlet Family-Tux
  132.         ssh -X family@10.0.0.240
  133. }
  134. Abigail-Tux ()
  135.         {
  136.         clear
  137.         figlet Abigail-Tux
  138.         ssh -X abigail@10.0.0.246
  139.         }
  140.  
  141. Kevin-Tux ()
  142.  
  143.         {
  144.         clear
  145.         figlet Kevin-Tux
  146.         ssh -X joe@10.0.0.247
  147.         }
  148.  
  149. Aiden-Tux ()
  150.         {
  151.         clear
  152.         figlet Aiden-Tux
  153.         ssh -X aiden@10.0.0.248
  154.         }
  155.  
  156. Envy-Tux ()
  157.         {
  158.         clear
  159.         figlet Envy-Tux
  160.         ssh -X joe@10.0.0.249
  161.         }
  162.  
  163. Tux-Box ()
  164.         {
  165.         clear
  166.         figlet Tux-Box
  167.         ssh -X joe@10.0.0.250
  168.         }
  169.  
  170. goodnight ()
  171.  
  172.         {
  173.         ssh aiden@10.0.0.248 'sudo -A shutdown -h now && exit'
  174.         echo -e "\e[00;31m Aiden-Tux has been shutdown for the night $USER \e[00m"
  175.         echo
  176.         echo -e "\e[00;32m --- Processing ---- \e[00m"
  177.         ssh joe@10.0.0.247 'sudo -A shutdown -h now && exit'
  178.         echo
  179.         echo -e "\e[00;31m Kevin-Tux has been shutdown for the night $USER \e[00m"
  180.  
  181.         }
  182.  
  183.        
  184. # Enhance colored ls output; for example, broken (orphan) symlinks will start showing in a red hue. Add the following to ~/.bashrc and relogin, or source the file:
  185. eval $(dircolors -b)
  186.  
  187. export GREP_COLOR="1;33"
  188.  
  189. # Enable code syntax coloring by adding
  190. export LESS="-R"
  191.  
  192. # Name of the host with T-Mux
  193. case "$TERM" in
  194.     screen*)
  195.             PROMPT_COMMAND="printf '\033k$(hostname -s)\033\\';"${PROMPT_COMMAND}
  196.                     ;;
  197.                     esac
  198. case "$TERM" in
  199.     xterm*) TERM=xterm-256color
  200.     esac
  201.  
  202. # Color Man Pages
  203.    man () \
  204.    {
  205.         env \
  206.         LESS_TERMCAP_mb=$(printf "\e[1;37m") \
  207.         LESS_TERMCAP_md=$(printf "\e[1;37m") \
  208.         LESS_TERMCAP_me=$(printf "\e[0m") \
  209.         LESS_TERMCAP_se=$(printf "\e[0m") \
  210.         LESS_TERMCAP_so=$(printf "\e[1;47;30m") \
  211.         LESS_TERMCAP_ue=$(printf "\e[0m") \
  212.         LESS_TERMCAP_us=$(printf "\e[0;36m") \
  213.         man "$@"
  214.                                                                                                                                                 }
  215.  
  216.  
  217. # Terminal Launch
  218. alsi -c1=white -c2=blue -t -u
  219. who -luHb
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top