I would like to know how can I write if conditions inside a bash script on a single line.
For example, how can I write this on a single line, and then put another one just like it on the next?
if [ -f "/usr/bin/wine" ]; then
I ask this because I have quite a few aliases in my .bashrc and I have the same .bashrc (synced) on multiple systems, but I don't need all aliases on each systems. I put most of them inside if statements, and it is all working beautifully now but they take a lot of space, 3 lines each plus the blank line between them (i like having them easily visible)
I will also use this technique for environment variables as well.