shell/tmux: don't install/run plugins in server mode

This commit is contained in:
Henrik Lissner 2016-12-23 20:05:31 -05:00
parent b4ce325269
commit 3dc86b62f7
2 changed files with 7 additions and 5 deletions

View file

@ -253,4 +253,4 @@ set -g @prefix_highlight_fg colour0
set -g @prefix_highlight_output_suffix ' #[bg=default] ' set -g @prefix_highlight_output_suffix ' #[bg=default] '
# Start plugin manager # Start plugin manager
run '~/.tmux/plugins/tpm/tpm' if '[ -x ~/.tmux/plugins/tpm/tpm ]' 'run ~/.tmux/plugins/tpm/tpm'

View file

@ -13,8 +13,10 @@ case $OSTYPE in
;; ;;
esac esac
if [[ -z $SERVER ]]; then
git-repo() { [[ -d $2 ]] || git clone "https://github.com/$1" "$2"; } git-repo() { [[ -d $2 ]] || git clone "https://github.com/$1" "$2"; }
CWD="$(dirname $0)" CWD="$(dirname $0)"
git-repo tmux-plugins/tpm "$CWD/.tmux/plugins/tpm" git-repo tmux-plugins/tpm "$CWD/.tmux/plugins/tpm"
git-repo jimeh/tmuxifier "$CWD/.tmuxifier" git-repo jimeh/tmuxifier "$CWD/.tmuxifier"
fi