Skip to content

Instantly share code, notes, and snippets.

@avescodes
Created January 12, 2009 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save avescodes/46108 to your computer and use it in GitHub Desktop.
Save avescodes/46108 to your computer and use it in GitHub Desktop.
require 'set'
all = Set.new
`which -a vi`.each_line {|line| all << line.strip }
`which -a vim`.each_line {|line| all << line.strip }
emacs = `which emacs`.strip
all.each do |vi|
puts "Please enter your password when prompted; we are fixing things"
`sudo rm #{vi}`
`sudo ln -s #{emacs} #{vi}`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment