A primitive shell written in go.
Clone or download
Latest commit 4888b98 Jan 13, 2019


Gosh - WIP

A shell written in go


Gosh includes two builtin commands:

  • cd <dir_name>
    • running cd with no arguments changes the directory to $HOME
  • exit <exit_code(optional)>

Gosh comes with 4 builtin prompt items:

  • user: displays the current user
  • hostname: displays your hostname
  • workdir: displays your current working directory
    • paths relative to $HOME are printed as ~/path
  • command: prints a : so that it is clear that the user can enter a command

Install instructions

Download and install:

go get github.com/cezarmathe/gosh