Skip to content

Commit

Permalink
Changed how ssh pubkey is handled. Just rming and linking the id_dsa.…
Browse files Browse the repository at this point in the history
…pub as a special case.
  • Loading branch information
r00k committed Aug 26, 2009
1 parent dfcf892 commit 6cc8cf9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Rakefile
Expand Up @@ -4,7 +4,7 @@ desc "install the dot files into user's home directory"
task :install do
replace_all = false
Dir['*'].each do |file|
next if %w[Rakefile README LICENSE].include? file
next if %w[Rakefile README LICENSE id_dsa.pub].include? file

if File.exist?(File.join(ENV['HOME'], ".#{file}"))
if replace_all
Expand All @@ -27,6 +27,12 @@ task :install do
link_file(file)
end
end

# Handle ssh pubkey on its own
puts "Linking public ssh key"
system %Q{rm "$HOME/.ssh/id_dsa.pub"}
system %Q{ln -s "$PWD/id_dsa.pub" "$HOME/.ssh/id_dsa.pub"}

end

def replace_file(file)
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions vimrc
Expand Up @@ -18,6 +18,7 @@ let mapleader = ","
map <Leader>h :FuzzyFinderTextMate<CR>
vmap <Leader>b :<C-U>!svn blame <C-R>=expand("%:p") <CR> \| sed -n <C-R>=line("'<") <CR>,<C-R>=line("'>") <CR>p <CR>
map <Leader>c :Rcontroller
map <Leader>d odebugger<cr>puts 'debugger'<esc>:w<cr>
map <Leader>co :TComment<CR>
map <Leader>vc :RVcontroller
map <Leader>sc :RScontroller
Expand Down

3 comments on commit 6cc8cf9

@joealba
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you really want that id_dsa.pub in your dotfiles repo, Ben...

@r00k
Copy link
Owner Author

@r00k r00k commented on 6cc8cf9 Feb 15, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the heads-up, but I'm pretty sure there's no danger in revealing your public key (which this is). My private key would be a whole other matter.

@joealba
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, pub. Sorry, haven't had enough coffee to counter my initial reaction. I suppose if people really want to add your public key to their systems so you can access them, that doesn't cause you any problems.

Please sign in to comment.