Created
February 19, 2023 08:48
-
-
Save TomerFi/12ac1715c7c4004c9518a97d1110c048 to your computer and use it in GitHub Desktop.
run idea as a process
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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