improved path handling for tmux/asdf clones

This commit is contained in:
KemoNine 2022-05-22 14:19:19 -04:00
parent c75fe96e9f
commit d668f757c2

View file

@ -27,13 +27,13 @@ rm -r ~/.config/lf
ln -s $PATH_PREFIX/config/lf ~/.config/lf
# get tmux plugin manager going if needed
if [[ ! -d ~/.tmux/plugins/tpm ]]; then
if ! ( [ -d ~/.tmux -a -d ~/.tmux/plugins -a -d ~/.tmux/plugins/tpm ] ); then
mkdir -p ~/.tmux/plugins/tpm
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
fi
# get asdf going if needed
if [[ ! -d ~/.asdf ]]; then
if ! [ -d ~/.asdf ]; then
git clone https://github.com/asdf-vm/asdf.git ~/.asdf
cd ~/.asdf
git checkout `git describe --tags --abbrev=0`