Restructuring & cleaning dotfiles, install script
This commit is contained in:
16
Rakefile
Normal file
16
Rakefile
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
require 'rake'
|
||||||
|
|
||||||
|
# loosely based on zholman's install script
|
||||||
|
|
||||||
|
desc "create all the symlinks"
|
||||||
|
task :install do
|
||||||
|
linkables = Dir.glob('*/**{.symlink}')
|
||||||
|
|
||||||
|
linkables.each do |linkable|
|
||||||
|
file = linkable.split('/').last.split('.symlink').last
|
||||||
|
target = "#{ENV["HOME"]}/.#{file}"
|
||||||
|
`ln -s "$PWD/#{linkable}" "#{target}"`
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
task :default => 'install'
|
||||||
2419
git-completion.bash
2419
git-completion.bash
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user