mirror of
https://gitlab.com/mlunax/dotfiles.git
synced 2025-04-19 08:45:36 +00:00
Add verbose output for installing OMZsh and powerlevel10k, delete old .zsh/ directory, and install executables
This commit is contained in:
parent
e99c54d85b
commit
b2b12f7390
1 changed files with 7 additions and 3 deletions
10
install.zsh
10
install.zsh
|
@ -8,15 +8,17 @@ install() {
|
||||||
|
|
||||||
cp -v .zshrc $HOME
|
cp -v .zshrc $HOME
|
||||||
if [ ! -d "${HOME}/.oh-my-zsh" ]; then
|
if [ ! -d "${HOME}/.oh-my-zsh" ]; then
|
||||||
echo "Installing OMZsh"
|
echo "[*] Installing OMZsh"
|
||||||
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
||||||
fi
|
fi
|
||||||
if [ ! -d "${HOME}/.oh-my-zsh/custom/themes/powerlevel10k" ]; then
|
if [ ! -d "${HOME}/.oh-my-zsh/custom/themes/powerlevel10k" ]; then
|
||||||
echo "Installing powerlevel10k"
|
echo
|
||||||
|
echo "[*] Installing powerlevel10k"
|
||||||
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel10k
|
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel10k
|
||||||
fi
|
fi
|
||||||
if [ -d "${HOME}/.zsh" ]; then
|
if [ -d "${HOME}/.zsh" ]; then
|
||||||
echo "Deleting old .zsh/"
|
echo
|
||||||
|
echo "[*] Deleting old .zsh/"
|
||||||
rm -rf $HOME/.zsh
|
rm -rf $HOME/.zsh
|
||||||
fi
|
fi
|
||||||
cp -rv .zsh/ $HOME
|
cp -rv .zsh/ $HOME
|
||||||
|
@ -34,7 +36,9 @@ if [ -n "${NPM_CONFIG_PREFIX}" ]; then
|
||||||
fi
|
fi
|
||||||
cp -v .tmux.conf ~/.tmux.conf
|
cp -v .tmux.conf ~/.tmux.conf
|
||||||
|
|
||||||
|
echo
|
||||||
echo "[*] installing executables"
|
echo "[*] installing executables"
|
||||||
|
|
||||||
find bin -type f | while read -r file; do
|
find bin -type f | while read -r file; do
|
||||||
install $file $(echo $file | sed "s|bin|$HOME/.local/bin|")
|
install $file $(echo $file | sed "s|bin|$HOME/.local/bin|")
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue