How to launch gedit from terminal and detach it (just like "subl" command works)?
13
votes
3
answers
9515
views
To open a file to edit in gedit I run
gedit sample.py &
. But with Sublime Text it is simply subl sample.py
. This opens the file to edit and it doesn't run in the background (in my shell).
How would I do that with gedit?
I tried exec /usr/bin/gedit "$@"
(copied from /usr/bin/subl
) but it works like gedit &
.
Or alias ged="gedit $file &"
should do. What can I substitute $file
in the alias?
Asked by Sandjaie Ravi
(1055 rep)
Jul 11, 2015, 10:05 AM
Last activity: Jul 12, 2025, 03:57 AM
Last activity: Jul 12, 2025, 03:57 AM