Skip to content

Commit

Permalink
🔖 v0.1.1 - update brew exported lists
Browse files Browse the repository at this point in the history
  • Loading branch information
blyndusk committed Apr 3, 2019
1 parent 02f10a9 commit 34903e2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .exports
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export APPS=(
"Activity Monitor"
)

export BREW_APPS=(
export BREW_FORMULAE=(
# package manager
node
yarn
Expand All @@ -25,7 +25,7 @@ export BREW_APPS=(
vim
)

export BREW_APPS_CASK=(
export BREW_CASK=(
alfred
dashlane
discord
Expand Down
26 changes: 9 additions & 17 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
function SYNC_DOTFILES () {
# get the last version of my repository
git pull origin master

# for every file in my dotfiles repository
for i in "$(pwd)"/.*
do
Expand All @@ -15,41 +14,34 @@ function SYNC_DOTFILES () {
echo "$FILE not found !" && touch "$FILE"
fi
done

# sync all files in my dotfiles repository, excluding specific files
rsync --exclude ".git" \
--exclude ".zshrc" \
--exclude "README.md" \
--exclude "install.sh" \
--exclude "scripts" \
-avh --no-perms . ~;
source ~ ;
source ~;
}
function INSTALL_BREW_STUFF() {

# install brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

if [ "$(command -v brew)" ] ; then
echo "brew not found. Installing brew.."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
# be sure this is the latest version
brew update

# upgrade any already-installed formulae.
brew upgrade

# install all given brew formulae
for i in "${BREW_APPS[@]}" ; do brew install "$i" ; done

for i in "${BREW_FORMULAE[@]}" ; do brew install "$i" ; done
# install all given brew casks
for i in "${BREW_APPS_CASK[@]}" ; do brew cask install "$i" ; done

for i in "${BREW_CASK[@]}" ; do brew cask install "$i" ; done
# remove outdated versions
brew cleanup

# diagnosis formulae
brew doctor
}


SYNC_DOTFILES

# INSTALL_BREW_STUFF
# SYNC_DOTFILES
# INSTALL_BREW_STUFF

0 comments on commit 34903e2

Please sign in to comment.