Added tmux-autostart function to start before the rest of the plugins.
This will prevent the double render issue that existed prior. It will still render twice, but the second render will be defered until after tmux has been quit.
This commit is contained in:
parent
25e31b3438
commit
bac51362aa
|
@ -2,13 +2,6 @@
|
||||||
|
|
||||||
source ${ZPLUG_HOME}/init.zsh
|
source ${ZPLUG_HOME}/init.zsh
|
||||||
|
|
||||||
zstyle ':tmux:auto-start' local 'yes'
|
|
||||||
zstyle ':tmux:auto-start' name 'tmux'
|
|
||||||
zplug "${ZDIR}/modules/tmux/", \
|
|
||||||
from:local, \
|
|
||||||
defer:0, \
|
|
||||||
as:plugin
|
|
||||||
|
|
||||||
zplug "zdharma/fast-syntax-highlighting", \
|
zplug "zdharma/fast-syntax-highlighting", \
|
||||||
as:plugin, \
|
as:plugin, \
|
||||||
defer:2
|
defer:2
|
||||||
|
@ -36,8 +29,6 @@ zplug "zdharma/zsh-diff-so-fancy", \
|
||||||
as:command, \
|
as:command, \
|
||||||
use:"bin/{git-dsf,diff-so-fancy}"
|
use:"bin/{git-dsf,diff-so-fancy}"
|
||||||
|
|
||||||
FZF_TMUX=1
|
|
||||||
FZF_TMUX_HEIGHT=30%
|
|
||||||
zplug "${ZDIR}/modules/fzf/", \
|
zplug "${ZDIR}/modules/fzf/", \
|
||||||
from:local, \
|
from:local, \
|
||||||
use:"fzf.zsh", \
|
use:"fzf.zsh", \
|
||||||
|
|
10
zsh/zshenv
10
zsh/zshenv
|
@ -18,9 +18,17 @@ export PAGER='less'
|
||||||
# Remove -X and -F (exit if the content fits on one screen) to enable it.
|
# Remove -X and -F (exit if the content fits on one screen) to enable it.
|
||||||
export LESS='-F -g -i -M -R -S -w -X -z-4'
|
export LESS='-F -g -i -M -R -S -w -X -z-4'
|
||||||
|
|
||||||
|
|
||||||
|
# Set tmux profile default values.
|
||||||
|
zstyle ':tmux:auto-start' local 'yes'
|
||||||
|
zstyle ':tmux:auto-start' name 'tmux'
|
||||||
|
|
||||||
|
# FZF tmux properties.
|
||||||
|
FZF_TMUX=1
|
||||||
|
FZF_TMUX_HEIGHT=30%
|
||||||
|
|
||||||
# This will load the specified zsh files if they exist in the $ZDIR/env directory.
|
# This will load the specified zsh files if they exist in the $ZDIR/env directory.
|
||||||
# It will load based on hostname & uname.
|
# It will load based on hostname & uname.
|
||||||
|
|
||||||
env_loader(){
|
env_loader(){
|
||||||
[ -e ${ZDIR}/env/$OSTYPE/$1 ] && source ${ZDIR}/env/$OSTYPE/$1
|
[ -e ${ZDIR}/env/$OSTYPE/$1 ] && source ${ZDIR}/env/$OSTYPE/$1
|
||||||
[ -e ${ZDIR}/env/$HOST/$1 ] && source ${ZDIR}/env/$HOST/$1
|
[ -e ${ZDIR}/env/$HOST/$1 ] && source ${ZDIR}/env/$HOST/$1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user