From 01d2d5addcd63b32363c0b1c1ccda1de498ad5f4 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Thu, 21 Apr 2022 01:01:00 +0800 Subject: Install tpm by clone instead of submodule --- .gitmodules | 3 --- .tmux.conf | 2 ++ .tmux/plugins/tmux-continuum | 1 - .tmux/plugins/tmux-resurrect | 1 - .tmux/plugins/tmux-sensible | 1 - .tmux/plugins/tmux-sessionist | 1 - .tmux/plugins/tpm | 1 - 7 files changed, 2 insertions(+), 8 deletions(-) delete mode 100644 .gitmodules delete mode 160000 .tmux/plugins/tmux-continuum delete mode 160000 .tmux/plugins/tmux-resurrect delete mode 160000 .tmux/plugins/tmux-sensible delete mode 160000 .tmux/plugins/tmux-sessionist delete mode 160000 .tmux/plugins/tpm diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index c1680c5..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule ".tmux/plugins/tpm"] - path = .tmux/plugins/tpm - url = https://github.com/tmux-plugins/tpm/ diff --git a/.tmux.conf b/.tmux.conf index fe3eee7..f527698 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -61,4 +61,6 @@ set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-continuum' set -g @continuum-restore 'on' +if "test ! -d ~/.tmux/plugins/tpm" \ + "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'" run '~/.tmux/plugins/tpm/tpm' diff --git a/.tmux/plugins/tmux-continuum b/.tmux/plugins/tmux-continuum deleted file mode 160000 index fc2f31d..0000000 --- a/.tmux/plugins/tmux-continuum +++ /dev/null @@ -1 +0,0 @@ -Subproject commit fc2f31d79537a5b349f55b74c8ca69abaac1ddbb diff --git a/.tmux/plugins/tmux-resurrect b/.tmux/plugins/tmux-resurrect deleted file mode 160000 index 6050d2d..0000000 --- a/.tmux/plugins/tmux-resurrect +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 6050d2d8d8a9052c6a30e88fa27e6d5e3844e52a diff --git a/.tmux/plugins/tmux-sensible b/.tmux/plugins/tmux-sensible deleted file mode 160000 index 5d089e4..0000000 --- a/.tmux/plugins/tmux-sensible +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 5d089e418efb1a00f47654014ed085deb3d0c878 diff --git a/.tmux/plugins/tmux-sessionist b/.tmux/plugins/tmux-sessionist deleted file mode 160000 index 09ec86b..0000000 --- a/.tmux/plugins/tmux-sessionist +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 09ec86be38eae98ffc27bd0dde605ed10ae0dc89 diff --git a/.tmux/plugins/tpm b/.tmux/plugins/tpm deleted file mode 160000 index b699a7e..0000000 --- a/.tmux/plugins/tpm +++ /dev/null @@ -1 +0,0 @@ -Subproject commit b699a7e01c253ffb7818b02d62bce24190ec1019 -- cgit v1.2.3