So my terminal is esmailelbob% and i wanted to make it looks like debian terminal where you see your current working dir (or pwd) so is there a way to do this? to be like esmailelbob - /home% or something near to it
SOVLED:
You can place this to your .zshrc file
export PS1="%d %% "
%d denotes the CWD
For more details go here for example
Source: https://stackoverflow.com/a/25090332
If you are really curios:
Sequence Printed
%T System time (HH:MM).
%* System time (HH:MM:SS).
%D System date (YY-MM-DD).
%n Current username.
%B - %b Begin - end bold print.
%U - %u Begin - end underlining.
%d The current working directory.
%~ The current working directory, relative to the home directory.
%M The computer's hostname.
%m The computer's hostname (truncated before the first period).
%l The current tty.
The percent sign (%) at the end of a prompt is typical for zsh and csh (or variants thereof), while for bash, ksh (and variants) and dash, it would normally be a dollar sign ($). That’s why I was assuming you were using zsh.
echo $SHELL
… will tell you what shell you’re using. If it’s bash, then just add the command to your ~/.bashrc.
esmailelbob% echo $SHELL
/bin/zsh
esmailelbob% cat ~/.zshrc
cat: /home/esmailelbob/.zshrc: No such file or directory
esmailelbob% cat ~/.bashrc
cat: /home/esmailelbob/.bashrc: No such file or directory
esmailelbob%
So you do have zsh, even though you don’t appear to have any user-level configuration file(s) for it. But unfortunately, I don’t have any experience with zsh, so all I can recommend is to read the manual…