(no title)
GNOMES | 4 months ago
Ex:
> echo $PWD
/foo/bar/batz/abc/123
> dc bar && echo $PWD
/foo/bar
Useful for times when I don't want to type a long train of dot slashes(ex. cd ../../..).Also useful when using Zoxide, and I tab complete into a directory tree path where parent directories are not in Zoxide history.
Added tab complete for speed.
rkomorn|4 months ago
ratrocket|4 months ago
> dc is the oldest surviving Unix language program.
https://en.wikipedia.org/wiki/Dc_%28computer_program%29
I used "dc" (the calculator) just earlier this week. Kids these days? :)