challenger challenger -4 years ago 181
Linux Question

Linux terminal replace path with symbol

I work with deep files and the paths shown in terminal are too long!

like:

user@user-pc ~/work/projects/development/react/experiments/lib/example/src/....


Is there any way to replace
~/work/projects/development/react/
with react symbol for example? Or any other symbol? Or even with a word with different color?!

Answer Source

You can use Oh My Zsh and there are a lot of themes which can fit for you. This is how it could look like

Oh My Zsh

https://github.com/robbyrussell/oh-my-zsh/wiki/Themes

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download