Skip to content

Commit e4c4214

Browse files
committed
Use non-config directory to install plugins
Makes the tmux config directory much more shareable as the plugins would install to this checked-in directory caused by the symbolic link, so either we ignore the directory or move the plugin install location. In this case the latter made sense and is discussed further in this issue tmux-plugins/tpm#215.
1 parent ee35115 commit e4c4214

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tmux/.config/tmux/tmux.conf

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,15 @@ set -g @catppuccin_flavour 'mocha'
3838
set -g @catppuccin_no_patched_fonts_theme_enabled on
3939
set -g @catppuccin_host on
4040

41+
set-environment -g -F TMUX_PLUGIN_MANAGER_PATH "${XDG_DATA_HOME}/tmux/plugins"
42+
4143
set -g @plugin 'tmux-plugins/tpm'
4244
set -g @plugin 'tmux-plugins/tmux-sensible'
4345
set -g @plugin 'christoomey/vim-tmux-navigator'
4446
set -g @plugin 'catppuccin/tmux'
4547
set -g @plugin 'tmux-plugins/tmux-yank'
4648

47-
run '~/.tmux/plugins/tpm/tpm'
49+
run "${XDG_DATA_HOME}/tmux/plugins/tpm/tpm"
4850

4951
# set vi-mode
5052
set-window-option -g mode-keys vi

zsh/dot-zshenv

+1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ export EDITOR=$VISUAL
33

44
export PATH="$HOME/.bin:$HOME/.rbenv/bin:/usr/local/bin:$HOME/.rbenv/shims:$PATH"
55
export XDG_CONFIG_HOME="$HOME"/.config
6+
export XDG_DATA_HOME="$HOME"/.local/share
67

0 commit comments

Comments
 (0)