From 93ca7ec9ed71fac9851455ffc70fae0a71887f16 Mon Sep 17 00:00:00 2001 From: Mitch Tishmack Date: Thu, 1 Jan 2015 19:19:23 -0600 Subject: [PATCH 1/4] Don't do emacs by default for the moment. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b3977f7..3590aae 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ DOTPROFILE=~/.profile home: $(DOTGITCONFIG) $(DOTPROFILE) $(DOTDEE) $(DOTPROFILE) -ws: common emacs git ruby haskell perl tmux vim zsh home +ws: common git ruby haskell perl tmux vim zsh home all: home From 35a25e68058b32f3e988af94bce3244ddcf58fd4 Mon Sep 17 00:00:00 2001 From: Mitch Tishmack Date: Thu, 1 Jan 2015 19:20:06 -0600 Subject: [PATCH 2/4] Rename osx/.profile.d/01-path-osx.sh to 10-path-osx.sh Was incorrect in the first place, oops. --- osx/.profile.d/01-path-osx.sh | 3 --- osx/.profile.d/10-path-osx.sh | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) delete mode 100644 osx/.profile.d/01-path-osx.sh create mode 100644 osx/.profile.d/10-path-osx.sh diff --git a/osx/.profile.d/01-path-osx.sh b/osx/.profile.d/01-path-osx.sh deleted file mode 100644 index 25c2345..0000000 --- a/osx/.profile.d/01-path-osx.sh +++ /dev/null @@ -1,3 +0,0 @@ -# osx/.profile.d/10-path-osx.sh -PATH="/usr/local/bin:${PATH}" -export PATH diff --git a/osx/.profile.d/10-path-osx.sh b/osx/.profile.d/10-path-osx.sh new file mode 100644 index 0000000..c9eb90f --- /dev/null +++ b/osx/.profile.d/10-path-osx.sh @@ -0,0 +1,5 @@ +# osx/.profile.d/10-path-osx.sh +osx_release=$(sw_vers -productVersion | sed -e 's/\.[0-9]\{1\}//2') +brew_home=/usr/local/brew/${osx_release} +PATH="${brew_home}/bin:/usr/local/bin:${PATH}" +export PATH From bcadf4772ce3548c651e376a9e39130464447072 Mon Sep 17 00:00:00 2001 From: Mitch Tishmack Date: Sun, 11 Jan 2015 23:32:38 -0600 Subject: [PATCH 3/4] Add cconv aka currency convert so I don't need to waste time opening a web browser for currency conversion. Yeah, I'm that weird. --- common/.profile.d/20-functions.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/.profile.d/20-functions.sh b/common/.profile.d/20-functions.sh index 5c81c2e..88d9ef7 100644 --- a/common/.profile.d/20-functions.sh +++ b/common/.profile.d/20-functions.sh @@ -80,3 +80,10 @@ login_shell() { [ "$-" = "*i*" ] } + +# Yeah, sick of using the web browser for this crap +# Use is NUM FROM TO and boom get the currency converted from goggle. +cconv() +{ + curl -L --silent "https://www.google.com/finance/converter?a=$1&from=$2&to=$3" | grep converter_result | perl -pe 's|[<]\w+ \w+[=]\w+[>]||g;' -pe 's|[<][/]span[>]||' +} From a002c6b327746bc78418551f59b1a38646629954 Mon Sep 17 00:00:00 2001 From: Mitch Tishmack Date: Mon, 12 Jan 2015 19:47:59 -0600 Subject: [PATCH 4/4] Add haskell to .profile.d for PATH information. --- haskell/.profile.d/10-path-haskell.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 haskell/.profile.d/10-path-haskell.sh diff --git a/haskell/.profile.d/10-path-haskell.sh b/haskell/.profile.d/10-path-haskell.sh new file mode 100644 index 0000000..8ae4d33 --- /dev/null +++ b/haskell/.profile.d/10-path-haskell.sh @@ -0,0 +1,3 @@ +# haskell/.profile.d/10-path-haskell.sh +PATH="${HOME}/.cabal/bin:${PATH}:${HOME}/.cabin/bin" +export PATH