 path = require 'path'
 debounce = require 'debounce'
 Terminal = require 'xterm'
+Terminal.loadAddon('fit')
 {CompositeDisposable} = require 'atom'
  # see https://github.com/f/atom-term.js/pull/5
  # see https://github.com/f/atom-term.js/pull/4

      @emitter.emit 'did-change-title', title

    term.open this.get(0)

    if not @opts.forkPTY
      term.end = => @exit()

    {cols, rows, cwd, shell, shellArguments, shellOverride, runCommand, colors, cursorBlink, scrollback} = @opts
    args = shellArguments.split(/\s+/g).filter (arg) -> arg

    @term = term = new Terminal {
      colors, cursorBlink, scrollback
    }

    term.on "data", (data) =>
