Ancora aggiustamenti a zshrc.
This commit is contained in:
parent
cc75210667
commit
9229f08dd1
42
zshrc
42
zshrc
@ -13,29 +13,8 @@ compinit
|
|||||||
# zsh packages from system
|
# zsh packages from system
|
||||||
source ${DOTFILES}/zsh/distro.base.zsh
|
source ${DOTFILES}/zsh/distro.base.zsh
|
||||||
|
|
||||||
# Plugins
|
# Antigen config
|
||||||
for plugin in `find $DOTFILES/zsh/plugins -iname \*.plugin.zsh -print`; do
|
source ${DOTFILES}/zsh/antigen.zsh
|
||||||
if [ -f /etc/redhat-release ]; then
|
|
||||||
if [ "$(basename ${plugin})" != 'fzf.plugin.zsh' ]; then
|
|
||||||
source $plugin
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
source $plugin
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
for plugin in `find $DOTFILES/zsh/plugins -iname \*.plugin.zsh -print`; do
|
|
||||||
if [ -f /etc/redhat-release ]; then
|
|
||||||
if [ "$(basename ${plugin})" != 'fzf.plugin.zsh' ]; then
|
|
||||||
source $plugin
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
source $plugin
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# Antigen configuration
|
|
||||||
# the main pluing should have been sourced in the previous loop.
|
|
||||||
antigen bundle command-not-found
|
antigen bundle command-not-found
|
||||||
antigen bundle common-aliases
|
antigen bundle common-aliases
|
||||||
antigen bundle copyfile
|
antigen bundle copyfile
|
||||||
@ -52,13 +31,26 @@ antigen bundle z
|
|||||||
antigen bundle sunlei/zsh-ssh
|
antigen bundle sunlei/zsh-ssh
|
||||||
antigen apply
|
antigen apply
|
||||||
|
|
||||||
# EDITOR
|
# configuring fzf plugin for tmux
|
||||||
export EDITOR="/usr/bin/vim"
|
|
||||||
export ZSH_TMUX_CONFIG=${HOME}/.config/tmux/tmux.conf
|
export ZSH_TMUX_CONFIG=${HOME}/.config/tmux/tmux.conf
|
||||||
|
|
||||||
# FZF default options
|
# FZF default options
|
||||||
[ -x `which fzf 2>/dev/null` ] && export FZF_DEFAULT_OPTS="--multi --no-mouse --ansi --color=dark"
|
[ -x `which fzf 2>/dev/null` ] && export FZF_DEFAULT_OPTS="--multi --no-mouse --ansi --color=dark"
|
||||||
|
|
||||||
|
# Other plugins
|
||||||
|
for plugin in `find $DOTFILES/zsh/plugins -iname \*.plugin.zsh -print`; do
|
||||||
|
if [ -f /etc/redhat-release ]; then
|
||||||
|
if [ "$(basename ${plugin})" != 'fzf.plugin.zsh' ]; then
|
||||||
|
source $plugin
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
source $plugin
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# EDITOR
|
||||||
|
export EDITOR="/usr/bin/vim"
|
||||||
|
|
||||||
# Loading additional aliases
|
# Loading additional aliases
|
||||||
for file in `find $DOTFILES/zsh/aliases -iname \*.aliases.zsh -print`; do
|
for file in `find $DOTFILES/zsh/aliases -iname \*.aliases.zsh -print`; do
|
||||||
source $file
|
source $file
|
||||||
|
Loading…
Reference in New Issue
Block a user