DEV Community

Discussion on: What does your Terminal look like?

Collapse
 
yechielk profile image
Yechiel Kalmenson

my terminal

  • Emoji indicating if the last command was successful or not
  • User and host name
  • Current working directory
  • Current git branch
Collapse
 
victoryarema profile image
Victor Yarema

You can also use commands "true" and "false" to generate just exit codes. Another more or less elegant way may be to use subshell like "( exit 0 ; )" and "( exit 1 ; )".