I want to open a file using the terminal on ubuntu.
To have it independent from the terminal, I use gnome-open:
And since I'm lazy, I also have this alias in my .bashrc:
So when I type
g text.pdf the file opens in evince but here is my problem:
The terminal is still open! I often don't need the terminal at that moment and since I'm using a tiling window manager it's wasting space so I close it manually which is annoying.
Is there a way to automatically close the terminal after the file was opened?