mirror of
https://gitlab.com/mlunax/dotfiles.git
synced 2025-04-18 16:26:50 +00:00
chore: Improve clarity and verbosity in install.zsh.
- Improve clarity of installation process with verbose `cp` commands and echo statements in `install.zsh` - Omit large changes from file diff summaries for better readability
This commit is contained in:
parent
cd28b6e122
commit
b714b077d4
1 changed files with 6 additions and 5 deletions
11
install.zsh
11
install.zsh
|
@ -1,16 +1,20 @@
|
|||
#!/usr/bin/env zsh
|
||||
# env, because some OSes keep zsh in /bin (I'm looking at you, Alpine)
|
||||
cp .zshrc $HOME
|
||||
|
||||
cp -v .zshrc $HOME
|
||||
if [ ! -d "${HOME}/.oh-my-zsh" ]; then
|
||||
echo "Installing OMZsh"
|
||||
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
||||
fi
|
||||
if [ ! -d "${HOME}/.oh-my-zsh/custom/themes/powerlevel10k" ]; then
|
||||
echo "Installing powerlevel10k"
|
||||
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel10k
|
||||
fi
|
||||
if [ -d "${HOME}/.zsh" ]; then
|
||||
echo "Deleting old .zsh/"
|
||||
rm -rf $HOME/.zsh
|
||||
fi
|
||||
cp -r .zsh/ $HOME
|
||||
cp -rv .zsh/ $HOME
|
||||
if [ -n "${devTools}" ]; then
|
||||
sed -i "s%export devTools=\"\"%export devTools=\"$devTools\"%g" $HOME/.zsh/env.zsh
|
||||
fi
|
||||
|
@ -24,7 +28,4 @@ if [ -n "${NPM_CONFIG_PREFIX}" ]; then
|
|||
sed -i "s%\# export NPM_CONFIG_PREFIX=\"\"%export NPM_CONFIG_PREFIX=\"$NPM_CONFIG_PREFIX\"%g" $HOME/.zsh/env.zsh
|
||||
fi
|
||||
cp -v .tmux.conf ~/.tmux.conf
|
||||
# if [ ! -d "${HOME}/.dotfiles" ]; then
|
||||
# git clone --bare git@github.com:mlunax/dotfiles.git $HOME/.dotfiles
|
||||
# fi
|
||||
source $HOME/.zshrc
|
||||
|
|
Loading…
Add table
Reference in a new issue