1 Answer
1

I don't think you can do this with an alias, but you can with a function in Bash.

$ gedit() { command gedit "$@" > /dev/null 2>&1 & }

Example

$ gedit file.txt
[1] 24057
$

Details

The function makes use of Bash's command command. This will invoke the actual executable with a given name, rather than call any aliases or functions that already exist. I opted to use $@ instead which will give you all the command line arguments passed instead of just the first with $1.