mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
# 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.
|
|
#
|
|
# fzf & sudo must start after vi-mode for it to work properly
|
|
#
|
|
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 )
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
# vim alias
|
|
alias vim="nvim"
|
|
alias vi="nvim"
|
|
|
|
# ls alias
|
|
alias ls="lsd"
|
|
alias l="lsd -al"
|
|
|
|
# vifm alias
|
|
alias vifm="vifmrun"
|
|
|
|
# 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'
|
|
# 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
|
|
|
|
neofetch
|