mirror of
https://gitlab.com/mlunax/dotfiles.git
synced 2025-04-18 16:26:50 +00:00
exclude script from rsync
This commit is contained in:
parent
7171f90051
commit
b0993b6dca
1 changed files with 6 additions and 2 deletions
|
@ -5,6 +5,10 @@
|
|||
function doIt() {
|
||||
rsync --exclude ".git/" \
|
||||
--exclude ".github/" \
|
||||
--exclude "bootstrap.sh" \
|
||||
--exclude "install.zsh" \
|
||||
--exclude "install-code.sh" \
|
||||
--exclude "install-packages.sh" \
|
||||
-avh --no-perms . ~;
|
||||
if [ ! -d "${HOME}/.oh-my-zsh" ]; then
|
||||
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
||||
|
@ -25,11 +29,11 @@ function doIt() {
|
|||
if [ -n "${ANDROID_SDK_ROOT}" ]; then
|
||||
sed -i "s%\#export ANDROID_SDK_ROOT=\"\"%export ANDROID_SDK_ROOT=\"$ANDROID_SDK_ROOT\"%g" $HOME/.zsh/env.zsh
|
||||
fi
|
||||
source $HOME/.zshrc
|
||||
}
|
||||
|
||||
if [ "$1" == "--force" -o "$1" == "-f" ]; then
|
||||
doIt;
|
||||
source $HOME/.zshrc
|
||||
else
|
||||
read -p "This may overwrite existing files in your home directory. Are you sure? (y/n) " -n 1;
|
||||
echo "";
|
||||
|
@ -37,4 +41,4 @@ else
|
|||
doIt;
|
||||
fi;
|
||||
fi;
|
||||
unset doIt;
|
||||
unset doIt;
|
||||
|
|
Loading…
Add table
Reference in a new issue