Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (17 sloc) 0.699 kb
desc "Installs the Plugins"
task :setup do
user = ENV['USER']
if user == "root" then
system("killall gedit")
system("cp rails.xml /usr/share/mime/packages")
system("update-mime-database /usr/share/mime")
system("cp erb.lang /usr/share/gtksourceview-2.0/language-specs/")
system("cp yaml.lang /usr/share/gtksourceview-2.0/language-specs/")
system("mkdir -p ~/.gnome2/gedit") unless File.directory? ENV['HOME'] + "/.gnome2/gedit"
system("cp -R snippets ~/.gnome2/gedit/")
system("mkdir -p ~/.gnome2/gedit/plugins") unless File.directory? ENV['HOME'] + "/.gnome2/gedit/plugins"
system("cp -R plugins/* ~/.gnome2/gedit/plugins/")
else
puts "You need to sudo this action"
end
end
Jump to Line
Something went wrong with that request. Please try again.