Test
head
JavaScript
# Switch git editior by the ppid
curr_ide=$(ps -p$PPID -o 'comm=' | grep -Eo 'pycharm|webstorm|idea|goland|clion|rider|rustrover')
if [ -n "$curr_ide" ]; then
  GIT_EDITOR="$curr_ide --wait"
  export GIT_EDITOR
fi
head
JavaScript
# Switch git editior by the ppid
curr_ide=$(ps -p$PPID -o 'comm=' | grep -Eo 'pycharm|webstorm|idea|goland|clion|rider|rustrover')
if [ -n "$curr_ide" ]; then
  GIT_EDITOR="$curr_ide --wait"
  export GIT_EDITOR
fi