Skip to content

Instantly share code, notes, and snippets.

@techarch
Created September 24, 2011 17:28
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techarch/1239600 to your computer and use it in GitHub Desktop.
Save techarch/1239600 to your computer and use it in GitHub Desktop.
Custom Pik configuration for Git Bash (MinGW32) on Windows
# Add the following line to your existing .bashrc
# Note the double quotes on the path next to source
[[ -s $USERPROFILE/.pik/.pikrc ]] && source "$USERPROFILE/.pik/.pikrc"
#!/bin/sh
# Assuming that Pik is install on the C: drive
pik_path=C:/pik
function pik {
$pik_path/pik_runner.exe pik.sh $@
# Note the double quotes on the path next to source
[[ -s $USERPROFILE/.pik/pik.sh ]] && source "$USERPROFILE/.pik/pik.sh"
}
#Assumption: Ruby 1.9.2 is installed on the C: drive in Ruby192
#
---
"186: ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]":
:path: !ruby/object:Pathname
path: C:/ruby/bin
"192: ruby 1.9.2p290 (2011-07-09) [i386-mingw32]":
:gem_home: !ruby/object:Pathname
path: c:/Ruby192/lib/ruby/gems/1.9.1
:path: !ruby/object:Pathname
path: C:/Ruby192/bin
--- {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment