Globally:
echo "set mark-symlinked-directories on" >> /etc/inputrc
Only on user level:
echo "set mark-symlinked-directories on" >> $HOME/.inputrc