Fix some install errors
This commit is contained in:
parent
4586b9e676
commit
27563b4808
2 changed files with 12 additions and 2 deletions
|
@ -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 $?
|
)
|
||||||
|
}
|
||||||
|
|
11
install.sh
11
install.sh
|
@ -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 ./
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue