6
rated 0 times
[
6]
[
0]
/ answers: 1 / hits: 760
/ 2 Years ago, mon, december 13, 2021, 1:47:32
I want something like this:
"vivek@grishma:~/xxx/yyy/zzz/src$"
to be shown as
"vivek@grishma:datasource$"
where I would somehow have predefined "datasource" to be an alias for the long path above.
using the alias command as
" alias datasource='~/xxx/yyy/zzz/src'"
is useful for navigation but it does not take out the long path in the prompt.
Is this possible?
PS- I dont want it to be just "vivek@grishma:" as then each time I should run pwd to know my working directory.
More From » command-line