Advertisement
Guest User

zshrc

a guest
Apr 15th, 2017
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.33 KB | None | 0 0
  1. #Custom completion scripts path
  2. fpath=(~/.zsh/completion $fpath)
  3.  
  4. # oh-my-zsh
  5. export ZSH=$HOME/.oh-my-zsh
  6. ZSH_THEME="agnoster"
  7. DEFAULT_USER='lucien'
  8. # Uncomment the following line to use case-sensitive completion.
  9. CASE_SENSITIVE="true"
  10. plugins=(git common-aliases)
  11. source $ZSH/oh-my-zsh.sh
  12.  
  13. source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
  14. #alias pacman='sudo pacman'
  15. alias pacs='pacman -Ss'
  16. alias paci='pacaur -S'
  17. alias pacu='pacaur -Syu'
  18. alias zshrc='vim ~/.zshrc && source ~/.zshrc'
  19. alias vimrc='vim ~/.vimrc'
  20. export EDITOR='vim'
  21.  
  22. #RVM
  23. if [[ -e ~/.rvm/scripts/rvm ]]; then
  24.     export PATH="$PATH:$HOME/.rvm/bin"
  25.     source ~/.rvm/scripts/rvm
  26. fi
  27.  
  28. if [[ ! $UID -eq 0 ]]; then
  29.     if [[ -e ~/.scripts ]]; then
  30.         export PATH="$PATH:$HOME/.scripts"
  31.     fi
  32.  
  33.     # Start the gpg-agent if not already running
  34.     if ! pgrep -x -u "${USER}" gpg-agent >/dev/null 2>&1; then
  35.       gpg-connect-agent /bye >/dev/null 2>&1
  36.     fi
  37.  
  38.     # Set SSH to use gpg-agent
  39.     unset SSH_AGENT_PID
  40.     if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
  41.       export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
  42.     fi
  43.  
  44.     # Set GPG TTY
  45.     export GPG_TTY=$(tty)
  46.  
  47.     # Refresh gpg-agent tty in case user switches into an X session
  48.     gpg-connect-agent updatestartuptty /bye >/dev/null
  49. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement