by which I mean - choose the "...bin" from history and cd there. That will always find more than 1 possibility, and choose the most recent, which will be /usr/bin. Actually I mean /usr/local/bin. At present I need to list all history, copy the full path, and "kd ". But, listing the path assigns a unique number to each path, so I should be able to use that number to
$ kd -o 2
which would bring me to the 2nd path on the list, which would be the the desired /usr/local/bin in the example
Suppose I do
And now I want to do
by which I mean - choose the "...bin" from history and cd there. That will always find more than 1 possibility, and choose the most recent, which will be /usr/bin. Actually I mean /usr/local/bin. At present I need to list all history, copy the full path, and "kd". But, listing the path assigns a unique number to each path, so I should be able to use that number to
which would bring me to the 2nd path on the list, which would be the the desired /usr/local/bin in the example