aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-04-21 01:01:00 +0800
committerGuangxiong Lin <[email protected]>2022-04-21 01:01:00 +0800
commit01d2d5addcd63b32363c0b1c1ccda1de498ad5f4 (patch)
tree5ad38fc325112ba4a4d6b39ce40ebdf3531ec156
parentdadd4850b32b697e1324e3d9e47f74c01be15500 (diff)
downloaddotfiles-01d2d5addcd63b32363c0b1c1ccda1de498ad5f4.tar.gz
dotfiles-01d2d5addcd63b32363c0b1c1ccda1de498ad5f4.tar.bz2
dotfiles-01d2d5addcd63b32363c0b1c1ccda1de498ad5f4.zip
Install tpm by clone instead of submodule
-rw-r--r--.gitmodules3
-rw-r--r--.tmux.conf2
m---------.tmux/plugins/tmux-continuum0
m---------.tmux/plugins/tmux-resurrect0
m---------.tmux/plugins/tmux-sensible0
m---------.tmux/plugins/tmux-sessionist0
m---------.tmux/plugins/tpm0
7 files changed, 2 insertions, 3 deletions
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
-Subproject fc2f31d79537a5b349f55b74c8ca69abaac1ddb
diff --git a/.tmux/plugins/tmux-resurrect b/.tmux/plugins/tmux-resurrect
deleted file mode 160000
-Subproject 6050d2d8d8a9052c6a30e88fa27e6d5e3844e52
diff --git a/.tmux/plugins/tmux-sensible b/.tmux/plugins/tmux-sensible
deleted file mode 160000
-Subproject 5d089e418efb1a00f47654014ed085deb3d0c87
diff --git a/.tmux/plugins/tmux-sessionist b/.tmux/plugins/tmux-sessionist
deleted file mode 160000
-Subproject 09ec86be38eae98ffc27bd0dde605ed10ae0dc8
diff --git a/.tmux/plugins/tpm b/.tmux/plugins/tpm
deleted file mode 160000
-Subproject b699a7e01c253ffb7818b02d62bce24190ec101