Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Working on the secret project

Henrik Nygren nygrenh

:octocat:
Working on the secret project
  • Helsinki, Finland
View GitHub Profile
@nygrenh
nygrenh / shell.rb
Created Aug 19, 2016
Simplest possible shell, written in Ruby
View shell.rb
loop do
print "#{Dir.pwd} $ "
command = gets.chomp
if command.start_with? 'cd '
Dir.chdir command.split[1]
else
puts `#{command}`
end
end
View Keybase proof.md

Keybase proof

I hereby claim:

  • I am nygrenh on github.
  • I am nygrenh (https://keybase.io/nygrenh) on keybase.
  • I have a public key ASCSOif-nYmwteW-zNOQcdC0jfn6pW3m42BXuguZfwUypwo

To claim this, I am signing this object: