diff --git a/.bash.d/functions.sh b/.bash.d/functions.sh index 605d96e0..851dc557 100644 --- a/.bash.d/functions.sh +++ b/.bash.d/functions.sh @@ -62,6 +62,13 @@ new(){ title "$LAST_TITLE" } +idea(){ + nohup command idea "$@" & + # disowns the first backgrounded command instead of the latest command, + # so use $! to specify the pid of the latest command in this shell + disown $! +} + # generates bash autocompletion if not available # sources bash autocompletion from local standardized path autocomplete(){