While setting classpaths in the .bashrc, I was wondering if there was a way to copy the current output from the shell for pasting later into some editor. What I am trying to accomplish is as follows:
- Get the current file path using pwd, e.g. - /SomeFolder/java/bin
- Use "some" command to copy the output of pwd into the buffer instead of selecting it using the mouse and copying it.
- Pasting the path(/SomeFolder/java/bin) in the .bashrc.
I was thinking if there was a way to do it in a mouse free manner.