add pwd to path linux

C++
$ echo "export PATH=\$PATH:$(pwd)" >> ~/.bashrc

Source

Also in C++: