So I recently started learning Ubuntu and playing with the terminal (I'm using Unix Power Tools, is it a good book?), and I'm stuck on the first thing that I got to ,which is to modify the prompt of the shell.
I know this question has been fielded before and have found said posts and knowledge base entries but none of them seem to work for me... Running Ubuntu 14.04, yes, I can 'sudo stop lightdm' to exit X, but that doesn't bring me to a shell prompt.
So I am building a shell and one command I am implementing is the prompt. This will take an argument and set that as the prompt, but if no argument is entered it will ask for user input and then use that.....
I know there are a hundred ways of doing this, but I'm just asking what is the most common way:
How do I make my own terminal prompt? In other words, I want something like the shell where I type a command and it returns another prompt, but I don't want to be bound by the constraints of any existing shell's syntax.
I welcome answers using BASH, Perl, Ruby, Python, JS, or whatever...
I am trying to set a custom prompt for the shell on an android device running bourne shell (sh), I have suceeded in setting it for a login shell (sh -l) but I would like to make this default for non login like adb or ssh through connectbot @localhost.