Skip to content

Instantly share code, notes, and snippets.

View nygrenh's full-sized avatar
:octocat:
Working on the secret project

Henrik Nygren nygrenh

:octocat:
Working on the secret project
  • Helsinki, Finland
View GitHub Profile

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:

@nygrenh
nygrenh / shell.rb
Created August 19, 2016 12:04
Simplest possible shell, written in Ruby
loop do
print "#{Dir.pwd} $ "
command = gets.chomp
if command.start_with? 'cd '
Dir.chdir command.split[1]
else
puts `#{command}`
end
end