Fix some install errors

This commit is contained in:
tblyler 2020-05-25 13:56:17 -04:00
parent 4586b9e676
commit 27563b4808
2 changed files with 12 additions and 2 deletions

View file

@ -64,4 +64,5 @@ upgrade_system() {
if [ -n "${TMUX}" ]; then if [ -n "${TMUX}" ]; then
tmux source-file "${HOME}/.tmux.conf" tmux source-file "${HOME}/.tmux.conf"
fi fi
) || return $? )
}

View file

@ -45,13 +45,21 @@ install_ohmyzsh() {
install_custom_ohmyzsh_plugins() { install_custom_ohmyzsh_plugins() {
local REPOS=( local REPOS=(
https://github.com/zsh-users/zsh-autosuggestions https://github.com/zsh-users/zsh-autosuggestions
https://github.com/zsh-users/zsh-syntax-highlighting
) )
local REPO local REPO
local ZSH_CUSTOM_DEST
for REPO in ${REPOS[*]}; do for REPO in ${REPOS[*]}; do
ZSH_CUSTOM_DEST="${ZSH_CUSTOM:-${HOME}/.oh-my-zsh/custom}/plugins/$(basename "${REPO}")"
if [ -d "${ZSH_CUSTOM_DEST}" ]; then
continue
fi
git clone \ git clone \
"${REPO}" \ "${REPO}" \
"${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions" || exit $? "${ZSH_CUSTOM_DEST}" || exit $?
done done
} }
@ -65,6 +73,7 @@ install_tmux_conf() {
set -e set -e
cd cd
git clone https://github.com/gpakosz/.tmux.git git clone https://github.com/gpakosz/.tmux.git
ln -s .tmux/.tmux.conf ./
) )
} }