0

I have installed oh-my-zsh this morning and now command line is too long, it looks something like this:

my-username@my-pc-name ~/Desktop/

I would like to change "my-username@my-pcname ~" part just to "~".

I have done it on my Linux Mint but can't make it work here. I have edited my .bashrc file (following this instructions) but changes wont take effect.

1

Okey i just realized that editing .bashrc file was bad idea, i c/p .zshrc file from Mint and it works like charm.

Here you can find pastebin of file if someone is interested.

| improve this answer | |
0

You need to customize your bash prompt by editing PS1 variable. Follow this link

THis is how mine looks like

Thu Mar 31 02:04 PM asiri:~$

Releated ps1 is

PS1='${debian_chroot:+($debian_chroot)}\d \@ \u:\W\$ '
| improve this answer | |
0

add this to ~/.zshrc

prompt_dir() {
  prompt_segment yellow $CURRENT_FG '%2~'
}
| improve this answer | |
  • Your participation is much appreciatedđź‘Ť Let me inform you that we love informative answers with step by step guide. Please try to post detailed information so that it is simple enough for someone with zero technical knowledge to easily understand. – Hasan Sep 5 at 12:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.