Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Custom completion scripts path
- fpath=(~/.zsh/completion $fpath)
- # oh-my-zsh
- export ZSH=$HOME/.oh-my-zsh
- ZSH_THEME="agnoster"
- DEFAULT_USER='lucien'
- # Uncomment the following line to use case-sensitive completion.
- CASE_SENSITIVE="true"
- plugins=(git common-aliases)
- source $ZSH/oh-my-zsh.sh
- source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
- #alias pacman='sudo pacman'
- alias pacs='pacman -Ss'
- alias paci='pacaur -S'
- alias pacu='pacaur -Syu'
- alias zshrc='vim ~/.zshrc && source ~/.zshrc'
- alias vimrc='vim ~/.vimrc'
- export EDITOR='vim'
- #RVM
- if [[ -e ~/.rvm/scripts/rvm ]]; then
- export PATH="$PATH:$HOME/.rvm/bin"
- source ~/.rvm/scripts/rvm
- fi
- if [[ ! $UID -eq 0 ]]; then
- if [[ -e ~/.scripts ]]; then
- export PATH="$PATH:$HOME/.scripts"
- fi
- # Start the gpg-agent if not already running
- if ! pgrep -x -u "${USER}" gpg-agent >/dev/null 2>&1; then
- gpg-connect-agent /bye >/dev/null 2>&1
- fi
- # Set SSH to use gpg-agent
- unset SSH_AGENT_PID
- if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
- export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
- fi
- # Set GPG TTY
- export GPG_TTY=$(tty)
- # Refresh gpg-agent tty in case user switches into an X session
- gpg-connect-agent updatestartuptty /bye >/dev/null
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement