check connectivity to github.com before installing and/or updating tpm and plugins, fixes #513
This commit is contained in:
parent
4ef0626b6d
commit
a63dc5c6a9
2 changed files with 29 additions and 22 deletions
|
@ -1341,6 +1341,8 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
|
|||
# tmux_conf_update_plugins_on_reload="$3"
|
||||
#
|
||||
# TMUX_PLUGIN_MANAGER_PATH=${TMUX_PLUGIN_MANAGER_PATH:-~/.tmux/plugins}
|
||||
#
|
||||
# if curl -Ikfs -o /dev/null --connect-timeout 2 --max-time 2 https://github.com; then
|
||||
# if [ ! -d "$TMUX_PLUGIN_MANAGER_PATH/tpm" ]; then
|
||||
# install_tpm=true
|
||||
# tmux display 'Installing tpm and plugins...'
|
||||
|
@ -1363,7 +1365,11 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
|
|||
# "$TMUX_PLUGIN_MANAGER_PATH/tpm/bin/install_plugins" >/dev/null 2>&1
|
||||
# tmux display 'Done installing tpm and plugins...'
|
||||
# fi
|
||||
# "$TMUX_PLUGIN_MANAGER_PATH/tpm/tpm"
|
||||
# else
|
||||
# tmux display "GitHub doesn't seem to be reachable, skipping installing and/or updating tpm and plugins..."
|
||||
# fi
|
||||
#
|
||||
# [ -f "$TMUX_PLUGIN_MANAGER_PATH/tpm/tpm" ] && "$TMUX_PLUGIN_MANAGER_PATH/tpm/tpm"
|
||||
# if [ -z "$window_active" ] && [ $_tmux_version -lt 240 ]; then
|
||||
# tmux run -b "sleep $(expr $(tmux display -p '#{display-time}') / 500) && tmux set display-time 3000 \; display 'This configuration will soon require tmux 2.4+' \; set -u display-time"
|
||||
# fi
|
||||
|
|
|
@ -347,6 +347,7 @@ tmux_conf_copy_to_os_clipboard=false
|
|||
# move status line to top
|
||||
#set -g status-position top
|
||||
|
||||
|
||||
# -- tpm -----------------------------------------------------------------------
|
||||
|
||||
# while I don't use tpm myself, many people requested official support so here
|
||||
|
|
Loading…
Reference in a new issue