tmux: Improve initial plugin setup
This commit is contained in:
parent
1e941f215d
commit
b6f33fc3c3
@ -31,10 +31,12 @@ set-option -g @plugin 'noscript/tmux-mighty-scroll'
|
|||||||
set-option -g @mighty-scroll-by-line 'man less pager fzf emacs emacsclient'
|
set-option -g @mighty-scroll-by-line 'man less pager fzf emacs emacsclient'
|
||||||
|
|
||||||
# install/update tpm
|
# install/update tpm
|
||||||
if-shell "test ! -d ~/.config/tmux/plugins/tpm" \
|
if-shell "test ! -d ~/.config/tmux/plugins/tpm" {
|
||||||
"run 'git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm'"
|
run-shell 'git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm'
|
||||||
run-shell '~/.config/tmux/plugins/tpm/bin/install_plugins'
|
}
|
||||||
run-shell '~/.config/tmux/plugins/tpm/bin/clean_plugins'
|
|
||||||
run-shell '~/.config/tmux/plugins/tpm/bin/update_plugins all'
|
|
||||||
# start tpm
|
# start tpm
|
||||||
run-shell '~/.config/tmux/plugins/tpm/tpm'
|
run-shell '~/.config/tmux/plugins/tpm/tpm'
|
||||||
|
# install and update plugins
|
||||||
|
run-shell '$TMUX_PLUGIN_MANAGER_PATH/tpm/bin/install_plugins'
|
||||||
|
run-shell '$TMUX_PLUGIN_MANAGER_PATH/tpm/bin/clean_plugins'
|
||||||
|
run-shell '$TMUX_PLUGIN_MANAGER_PATH/tpm/bin/update_plugins all'
|
||||||
|
Loading…
Reference in New Issue
Block a user