Skip to content

Instantly share code, notes, and snippets.

@TomerFi
Created February 19, 2023 08:48
Show Gist options
  • Save TomerFi/12ac1715c7c4004c9518a97d1110c048 to your computer and use it in GitHub Desktop.
Save TomerFi/12ac1715c7c4004c9518a97d1110c048 to your computer and use it in GitHub Desktop.
run idea as a process
# place this in .bashrc
function idea() {
ideapath="/opt/idea-IU-223.8617.56/bin/idea.sh"
logfile="$HOME/idea.log" # use /dev/null for no logs
if [ -z "$1" ]; then
( "$ideapath" > "$logfile" 2>&1 & ) 2> /dev/null
else
( "$ideapath" "$1" > "$logfile" 2>&1 & ) 2> /dev/null
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment