I have portable homedir. I want to include some code to .bashrc, but I want it to be executed on specific models only.
It is keybindings code (xmodmap) which reassigns some of keys, so it should be executed on my laptop only or any other Thinkpad X220
Can you suggest a reliable way to detect the thinkpad model?
I could bind it to a network interface MAC or CPU, but it would be cool to find out model name.