         file.save script, (err)=>
           return if KD.showError err
 
+          command = "bash #{path};exit"
+
+          if not inTerminal
+
+            new KDNotificationView
+              title: "Init script running in background..."
+
+            machine.getBaseKite().exec { command }
+              .then (res)->
+
+                new KDNotificationView
+                  title: "Init script executed"
+
+                info  "Init script executed : ", res.stdout  if res.stdout
+                error "Init script failed   : ", res.stderr  if res.stderr
+
+              .catch (err)->
+
+                new KDNotificationView
+                  title: "Init script executed successfully"
+                error "Init script failed:", err
+
+            return
+
           modal = @openTerminal
-            command       : "bash #{path};exit"
+            command       : command
             readOnly      : yes
             destroyOnExit : no
 

        callback          : @bound "showBuildScriptEditorModal"

      'Run build script'  :
        disabled          : !isRunning
        callback          : @bound "runBuildScript"
        separator         : yes

      'Launch Terminal'   :
        disabled          : !isRunning
        callback          : @lazyBound "openTerminal", {}
        separator         : yes


      Machine.State.Terminated
    ]

    running  = machine.status.state is Machine.State.Running

    colorSelection = new ColorSelection selectedColor : @getOption 'colorTag'
    colorSelection.on "ColorChanged", @bound 'setColorTag'
