Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #126 from caarlos0/linux
Browse files Browse the repository at this point in the history
Linux fixes
  • Loading branch information
caarlos0 committed Jan 11, 2016
2 parents 02a4f71 + 98e73ef commit f55c377
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
6 changes: 6 additions & 0 deletions homebrew/path.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
if [ -d "$HOME/.linuxbrew/bin" ]; then
export PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
fi
1 change: 1 addition & 0 deletions osx/install.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/sh
[ "$(uname -s)" != "Darwin" ] && exit 0
echo "› sudo softwareupdate -ia"
sudo softwareupdate -ia
9 changes: 5 additions & 4 deletions script/install
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ set -e

cd "$(dirname "$0")"/..

# Run Homebrew through the Brewfile
echo "› brew bundle"
brew bundle

# find the installers and run them iteratively
find . -name install.sh | egrep -v "homebrew|build" | while read installer
do
echo "${installer}..."
sh -c "$installer"
done

# Run Homebrew through the Brewfile
echo "› brew bundle"
brew bundle

5 changes: 3 additions & 2 deletions zsh/zshrc.symlink
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
#!/bin/zsh
# shortcut to this dotfiles path is $ZSH
export ZSH=$HOME/.dotfiles
export ZSH="$HOME/.dotfiles"

# your project folder that we can `c [tab]` to
export PROJECTS=~/Code
export PROJECTS="$HOME/Code"

# all of our zsh files
typeset -U config_files
config_files=($ZSH/*/*.zsh)

# load the path files
source "$ZSH/homebrew/path.zsh"
for file in ${(M)config_files:#*/path.zsh}; do
source "$file"
done
Expand Down

0 comments on commit f55c377

Please sign in to comment.