organize all shell scripts into logical dirs

This commit is contained in:
Marty Oehme 2019-03-15 14:40:03 +01:00
parent c4d2b9534a
commit a446cd7a7a
30 changed files with 177 additions and 252 deletions

View file

@ -0,0 +1,20 @@
# Clone tmux plugin manager if not existing
if [[ -z "$TPM_PARENT_DIR" ]]; then
TPM_PARENT_DIR=${XDG_CONFIG_HOME:-$HOME/.config}/tmux
fi
if [[ ! -f $TPM_PARENT_DIR/plugins/tpm/tpm ]]; then
if [[ ! -d "$TPM_PARENT_DIR" ]]; then
mkdir -p "$TPM_PARENT_DIR"
fi
pushd $TPM_PARENT_DIR
git clone https://github.com/tmux-plugins/tpm plugins/tpm
popd
fi
export TMUX_PLUGIN_MANAGER_PATH=$TPM_PARENT_DIR/plugins
alias tmux="tmux -f ${TPM_PARENT_DIR}/tmux.conf"
unset TPM_PARENT_DIR
unset TPM_SUB_DIR