Sublime text: Do not print path of build command

Solution 1:

A bit of a hack, but the following worked for me. Turns out you can override code in some of the default packages, including the code responsible for the path output:

  1. Go to C:\Program Files\Sublime Text 3\Packages
  2. Extract Default.sublime-package (it's actually a zip file) and get the file exec.py (don't leave the extracted folder hanging around in the directory)
  3. Create the directory Default under C:\Users\USERNAME\AppData\Roaming\Sublime Text 3\Packages, and place exec.py into it
  4. Open exec.py, and comment out (place # at the beginning of the line) the following line, at line 245 for me

    self.append_string(proc, self.debug_text)

  5. Restart Sublime Text

Solution 2:

Install PackageResourceViewer package

Open PackageResourceViewer:Open Resource using CommandPalette[Ctrl+Shift+P]

Then Select Default -->exec.py Then Select Sublime Input -->input.py [For Sublime Input]

Comment out (place # at the beginning of the line) the following line, at line 365[ST3 B3126] (383 for Sublime Input) for me

self.append_string(proc, self.debug_text)

This is not only hiding the path but the dir and cmd also .

To hide only the path comment the following block

if "PATH" in merged_env:
  self.debug_text += "[path: " + str(merged_env["PATH"]) + "]"
else:
  self.debug_text += "[path: " + str(os.environ["PATH"]) + "]"

Update

To remove cmd,finished statement,dir,path "quiet":true in build file

Source