Change your Terminal prompt - Lost style
Fancy a change from the default prompt you get in your Terminal? Want to mimic the Terminal prompt used in Lost? I did, and during a boring lecture at Uni, decided to update it.
I’m using zsh
currently, but this will also work for a bash
shell (default with Mac OS X). I’m using TextMate to edit my files, but if you’re on Linux (Ubuntu, right?), then just substitute the mate
command for nano
or your favourite editor.
Just to make sure that you’re in your home directory:
cd ~
Now open your shell profile. If you’re using zsh
:
mate .zprofile
Or if you’re using bash
:
mate .bashrc
Now add the following line:
export PS1=">: "
Save and close the file.
Now, make sure you have the right colour scheme going on.
- ‘Terminal’ from the main menu.
- Select ‘Window Settings’
- Select ‘Color’ in the drop down
- Select ‘Green on Black’ from the ‘Standard Color Selections’
- Click the big ‘Use Settings as Defaults’
- Close the window, and you’re done
Open a new Terminal window and you should get a nice Lost ‘style’ for your prompt. Nothing too fancy–just something nice and simple.
Now, you only have 108 minutes to enter the code… so don’t waste time!
Damn. I can’t wait until the next episode.