compressing most stuff to bashrc and making it somewhat platform independent