Skip to content

Commit

Permalink
move some OS X stuff from .bash_profile into the generic .profile
Browse files Browse the repository at this point in the history
  • Loading branch information
strugee committed Dec 31, 2013
1 parent 1dad188 commit 456418d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
19 changes: 0 additions & 19 deletions .bash_profile
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@
#.bash_profile

if [ $(uname -s) == "Darwin" ]; then
# For distributed.net client
PATH=$PATH:/Applications/dnetc518-macosx-x86
# For MacPorts
PATH=$PATH:/opt/local/bin:/opt/local/sbin
# For Fink
test -r /sw/bin/init.sh && . /sw/bin/init.sh
# For Android
PATH=$PATH:"/Applications/Android SDK/tools":"/Applications/Android SDK/platform-tools"

##
# Your previous /Users/alex/.bash_profile file was backed up as /Users/alex/.bash_profile.macports-saved_2013-03-16_at_00:07:13
##

# MacPorts Installer addition on 2013-03-16_at_00:07:13: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
fi

# For personal scripts saved in ~/bin
export PATH=$PATH:~/bin

Expand Down
23 changes: 22 additions & 1 deletion .profile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,28 @@ if [ -f /etc/os-release ]; then
fi

# For Homebrew formulae on OS X
if [ $(uname) = "Darwin" ]; then export PATH=/usr/local/sbin:/usr/local/bin:$PATH; fi
if [ $(uname -s) == "Darwin" ]; then
# For distributed.net client
PATH=$PATH:/Applications/dnetc518-macosx-x86
# For MacPorts
PATH=$PATH:/opt/local/bin:/opt/local/sbin
# For Fink
test -r /sw/bin/init.sh && . /sw/bin/init.sh
# For Android
PATH=$PATH:"/Applications/Android SDK/tools":"/Applications/Android SDK/platform-tools"
# For Homebrew
PATH=/usr/local/bin:/usr/local/sbin:$PATH

export PATH

##
# Your previous /Users/alex/.bash_profile file was backed up as /Users/alex/.bash_profile.macports-saved_2013-03-16_at_00:07:13
##

# MacPorts Installer addition on 2013-03-16_at_00:07:13: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
fi

if [ -f /usr/bin/pacmatic ]; then
alias pacman=pacmatic
Expand Down

0 comments on commit 456418d

Please sign in to comment.