Today I Learned

hashrocket A Hashrocket project

Change Prompt in Z Shell

When I live code, or share terminal commands in a demonstration, I don't want my customized terminal prompt included in that information. It's noisy.

Right now I'm changing this in Z Shell via that PROMPT variable.

# Complex prompt
jake@computer-name: echo $PROMPT
%{%}%n@%m%{%}:

# Simple prompt
jake@computer-name: PROMPT="$ "
$ echo 'ready to live code'
ready to live code
$
See More #command-line TILs