Skip to content

Commit

Permalink
New Packages and Update Scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Corey Schafer authored and Corey Schafer committed Apr 8, 2016
1 parent db09b9f commit aa719fc
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .aliases
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ alias egrep='egrep --color=auto'
alias sudo='sudo '

# Get OS X Software Updates, and update installed Ruby gems, Homebrew, npm, and their installed packages
alias update_all='sudo softwareupdate -i -a; npm install npm -g; npm update -g; sudo gem update --system; sudo gem update; brew -v update; brew -v upgrade --all; brew cleanup; brew cask cleanup; brew prune; brew doctor'
alias update_all='sudo softwareupdate -i -a; npm install npm -g; npm update -g; sudo gem update --system; sudo gem update; brew -v update; brew -v upgrade --all; brew cleanup; brew cask cleanup; brew prune; brew doctor; conda update conda; pip install --upgrade pip'
alias update_brew="brew -v update; brew -v upgrade --all; brew cleanup; brew cask cleanup; brew prune; brew doctor"
alias pip_update_all='pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U'
alias update_python_all='pip install --upgrade pip; pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U; conda update conda; conda update anaconda'

# Show/hide hidden files in Finder
alias show="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
Expand Down
28 changes: 22 additions & 6 deletions .bash_profile
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
# Add `~/bin` to the `$PATH`
# Add to the $PATH. Lower ones have higher priority.

export GEM_HOME="$HOME/.gem:$PATH";
export PATH="$GEM_HOME/bin:$PATH";

export PATH="/usr/bin:$PATH";
export PATH="/usr/sbin:$PATH";
export PATH="/bin:$PATH";
export PATH="/sbin:$PATH";
export PATH="/usr/local/bin:$PATH";
export PATH="/usr/local/sbin:$PATH";

export PATH="/usr/local/git/bin:$PATH";
export PATH="$HOME/bin:$PATH";
export PATH="/usr/local/sbin:$PATH"
export PATH="$(brew --prefix coreutils)/libexec/gnubin:$PATH"
export PATH="$HOME/anaconda/bin:$PATH";
export PATH="$(brew --prefix coreutils)/libexec/gnubin:$PATH";

# Set Man Pages
export MANPATH="$(brew --prefix coreutils)/libexec/gnuman:$MANPATH"

# Set PATH for Finder-launched applications
launchctl setenv PATH $PATH

# Load the shell dotfiles, and then some:
# * ~/.path can be used to extend `$PATH`.
# * ~/.extra can be used for other settings you don’t want to commit.
for file in ~/.{path,bash_prompt,exports,aliases,functions,private}; do
# * ~/.private can be used for other settings you don’t want to commit.
for file in ~/.{private,bash_prompt,exports,aliases,functions}; do
[ -r "$file" ] && [ -f "$file" ] && source "$file";
done;
unset file;
Expand Down
2 changes: 0 additions & 2 deletions .path

This file was deleted.

37 changes: 31 additions & 6 deletions brew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,39 +14,64 @@ brew update
# Upgrade any already-installed formulae.
brew upgrade --all

brew tap homebrew/dupes

# Install GNU core utilities (those that come with OS X are outdated).
# Don’t forget to add `$(brew --prefix coreutils)/libexec/gnubin` to `$PATH`.
brew install coreutils
sudo ln -s /usr/local/bin/gsha256sum /usr/local/bin/sha256sum

# Install some other useful utilities like `sponge`.
brew install moreutils
# Install GNU `find`, `locate`, `updatedb`, and `xargs`, `g`-prefixed.
brew install findutils
# Install GNU `sed`, overwriting the built-in `sed`.

# Install GNU `find`, `locate`, `updatedb`, and `xargs`.
brew install findutils --with-default-names

# Install other GNU utilities, overwriting the built-ins.
brew install gnu-sed --with-default-names
brew install gnu-tar --with-default-names
brew install gnu-which --with-default-names
brew install gnu-indent --with-default-names
brew install gnutls --with-default-names
brew install grep --with-default-names
brew install binutils
brew install diffutils
brew install gawk
brew install gzip
brew install screen
brew install watch
brew install wdiff --with-gettext

# Install `wget` with IRI support.
brew install wget --with-iri

# Install Bash 4.
# Note: don’t forget to add `/usr/local/bin/bash` to `/etc/shells` before
# running `chsh`.
brew install bash
brew tap homebrew/versions
brew install bash-completion2

# Install `wget` with IRI support.
brew install wget --with-iri

# Install more recent versions of some OS X tools.
brew install vim --override-system-vi
brew install homebrew/dupes/grep
brew install homebrew/dupes/openssh
brew install homebrew/dupes/screen
brew install homebrew/dupes/lsof

# Install other useful binaries.
brew install git
brew install speedtest_cli
brew install ssh-copy-id
brew install testssl
brew install tree
brew install ruby
brew install openssh
brew install rsync
brew install gcc --enable-all-languages
brew install htop
brew install nmap
brew install gzip

# Remove outdated versions from the cellar.
brew cleanup
7 changes: 5 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ echo "...done"
# move any existing dotfiles in ${homedir} to dotfiles_old directory, then create symlinks
for file in ${files}; do
echo "Moving any existing dotfiles from ${homedir} to ${olddir}"
mv ${homedir}/.${file} ${homedir}/dotfiles_old/
mv ${homedir}/.${file} ${olddir}/
echo "Creating symlink to $file in home directory."
ln -s ${dir}/.${file} ${homedir}/.${file}
done
done

# Run the Homebrew Script
./brew.sh

0 comments on commit aa719fc

Please sign in to comment.