I'm working on Ubuntu 16.04 LTS and I need to add CUDA PATH and LD_LIBRARY_PATH. Then I read a blog saying this can be done by adding these two lines in ~/.vimrc
version 1:
export PATH=/usr/local/cuda-8.0/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda8.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
And I also read another version:
version 2:
export PATH=/usr/local/cuda-8.0/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda8.0/lib64:$LD_LIBRARY_PATH
And I'm not sure the differences between them, especially the confusing nested $PATH in version 1.