#!/usr/bin/env ruby require 'fileutils' binpath = "#{File.expand_path(File.dirname(__FILE__)).chomp}/../" linkname = ARGV[0] || 'index' powpath = "#{ENV['HOME']}/.pow/#{linkname}" FileUtils.ln_s(binpath, powpath) unless File.exists?(powpath) puts "Created #{powpath}"