Modifying the Terminal Prompt for Sanity

If you’re working with more than one computer at a time, then you’re probably using some form of remote access framework - most likely ssh. This is common in machine learning where our scripts are run on some other host with more capabilities. In this post we’ll look at how to modify the terminal prompt layout and colours to give us information we need at a glance: the current user; whether they’re root; what computer we’re working on; what folder in and the time that the last command was given.