Halloween Bash
Bash Prompt String Generator
by @rexfeng
(Flatiron School 2012)
Slide 2
Slide 2 text
Good programmers are lazy
● Your tools are extremely important
● Don't make things harder than they have to
be
Slide 3
Slide 3 text
GUI vs CLI
● Graphical user interface
○ Familiar, Mouse to move
● Command-line interpreter
○ Help! What do I type in this box?
Slide 4
Slide 4 text
Bash (Bourne-again shell)
● a CLI
● Released in 1989
Slide 5
Slide 5 text
Launch Terminal (OS X)
● Bash (shell) is the program which actually
processes commands and returns output.
● Terminal.app is the wrapper program which
runs Bash (shell)
● Cmd+N for New
● Cmd+T for new Tab
Slide 6
Slide 6 text
Bash Customization
● .bash_profile
● .bash_login (if started as a login shell, was
passed the --login flag)
● .bashrc (evaluated when bash was invoked
as an interactive shell)
Slide 7
Slide 7 text
No content
Slide 8
Slide 8 text
No content
Slide 9
Slide 9 text
No content
Slide 10
Slide 10 text
Google Prompt String Generators
● Lots of reading in small fonts
● What is \@?
● What about [\e[0m\]?
● I just want my Bash to look great,
not solve a puzzle.
Slide 11
Slide 11 text
Halloween Bash
● easy way to customize your .bash_profile
prompt string (PS1)
● don't need to read 'man bash'
and look for 'PROMPTING' section
Slide 12
Slide 12 text
How to use Halloween Bash
● Drag & drop - what you see is what you get
● Click the color you want
● Copy & paste into .bash_profile
Slide 13
Slide 13 text
Don't see any changes?
● Open a new Window/Tab
● Run "source ~/.bash_profile" to reset
Slide 14
Slide 14 text
● Live site http://xta.github.
com/HalloweenBash/
● Github
https://github.com/xta/HalloweenBash
Find it online