put it in your ~/.bashrc or ~/.profile or for system wide /etc/bashrc
For upgrading on slack, just d/l compile, make install.. The install script will overwrite the older versions of the files. (if they get placed in the same libraries)
As with KDE, sorry never used it, can't help there.