2016-11-09 13:09:59 +00:00
|
|
|
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
|
|
|
|
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
|
|
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
|
|
|
# Add wisely, as too many plugins slow down shell startup.
|
2019-09-30 15:03:34 +00:00
|
|
|
#
|
2019-09-30 15:16:19 +00:00
|
|
|
# fzf & sudo must start after vi-mode for it to work properly
|
2019-09-30 15:03:34 +00:00
|
|
|
#
|
2019-09-30 15:16:19 +00:00
|
|
|
plugins=(aws archlinux bower common-aliases composer docker extract git git-flow gitignore httpie pass rsync symfony2 systemd tmux vi-mode fzf sudo yarn zsh-syntax-highlighting )
|
2016-11-09 13:09:59 +00:00
|
|
|
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
|
2019-03-19 13:29:07 +00:00
|
|
|
# ls alias
|
|
|
|
alias ls="lsd"
|
|
|
|
alias l="lsd -al"
|
|
|
|
|
2019-03-20 13:54:32 +00:00
|
|
|
# vifm alias
|
|
|
|
alias vifm="vifmrun"
|
2019-05-31 15:25:05 +00:00
|
|
|
alias vim="nvim"
|
2019-05-31 15:28:36 +00:00
|
|
|
alias vi="nvim"
|
2019-03-20 13:54:32 +00:00
|
|
|
|
2019-05-31 15:28:36 +00:00
|
|
|
# ls alias
|
|
|
|
alias ls="lsd"
|
|
|
|
alias l="lsd -al"
|
|
|
|
|
|
|
|
# vifm alias
|
|
|
|
alias vifm="vifmrun"
|
|
|
|
|
2019-09-30 16:09:51 +00:00
|
|
|
# Use lf to switch directories and bind it to ctrl-o
|
|
|
|
lfcd () {
|
|
|
|
tmp="$(mktemp)"
|
|
|
|
lf -last-dir-path="$tmp" "$@"
|
|
|
|
if [ -f "$tmp" ]; then
|
|
|
|
dir="$(cat "$tmp")"
|
|
|
|
rm -f "$tmp"
|
|
|
|
[ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
bindkey -s '^o' 'lfcd\n'
|
2019-05-31 15:28:36 +00:00
|
|
|
# Set GPG TTY
|
|
|
|
export GPG_TTY="$(tty)"
|
2016-12-30 20:07:59 +00:00
|
|
|
# Refresh gpg-agent tty in case user switches into an X session
|
|
|
|
gpg-connect-agent updatestartuptty /bye >/dev/null
|
|
|
|
|
2016-12-29 13:17:16 +00:00
|
|
|
neofetch
|