Advertisement
Guest User

m8f zshrc

a guest
Jun 16th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.55 KB | None | 0 0
  1. # Path to your oh-my-zsh installation.
  2. export ZSH=/home/kromm/.oh-my-zsh
  3.  
  4. # Set name of the theme to load.
  5. # Look in ~/.oh-my-zsh/themes/
  6. # Optionally, if you set this to "random", it'll load a random theme each
  7. # time that oh-my-zsh is loaded.
  8. ZSH_THEME="agnoster"
  9.  
  10. # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
  11. # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
  12. # Example format: plugins=(rails git textmate ruby lighthouse)
  13. # Add wisely, as too many plugins slow down shell startup.
  14. plugins=(git)
  15.  
  16. # User configuration
  17.  
  18. source $ZSH/oh-my-zsh.sh
  19.  
  20. alias gst="git status"
  21. alias gcm="git commit"
  22. alias gdi="git diff"
  23. alias bp="beep -f 40 -l 50"
  24. alias E="exit"
  25. alias N="nvlc *"
  26. alias K="kolourpaint"
  27.  
  28. autoload -U promptinit
  29. promptinit
  30. prompt adam2
  31.  
  32. setopt prompt_subst
  33. autoload -Uz vcs_info
  34. zstyle ':vcs_info:*' actionformats \
  35.         '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f '
  36. zstyle ':vcs_info:*' formats       \
  37.         '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f '
  38. zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r'
  39.  
  40. zstyle ':vcs_info:*' enable git cvs svn
  41.  
  42. vcs_info_wrapper() {
  43.   vcs_info
  44.   if [ -n "$vcs_info_msg_0_" ]; then
  45.       echo "[$(basename `git rev-parse --show-toplevel`)] ${vcs_info}%{$fg[grey]%}${vcs_info_msg_0_}%{$reset_color%}$del"
  46.   fi
  47. }
  48. RPROMPT=$'$(vcs_info_wrapper)'
  49.  
  50. bindkey '\e.' insert-last-word
  51.  
  52. setopt histignorespace
  53.  
  54. alias mdate="date +\"%Y-%m-%d %H:%M\""
  55.  
  56. fpath+=~/.zfunc
  57. compinit
  58.  
  59. export SHELL=/usr/bin/zsh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement