How can I make an alias along the lines of:
command-line bash bashrc prompt ps1
alias=PS1="\d \h $ "
which, obviously, won't work. Is there some trick to making assignments from the
I also tried:
alias ps='PS1 $(\d \h $)'
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community