Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schinckel/a5bf2cd9dbcd7776c5bb to your computer and use it in GitHub Desktop.
Save schinckel/a5bf2cd9dbcd7776c5bb to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
###############################################################
#
# Paste this into a TextMate document,
# press ⇧^⌥R and choose 'Ruby' from the menu that appears,
# and then press ⌘R to run this in the context of TextMate
# to see all TextMate environment variables and their values
#
###############################################################
def display(environment_variable)
puts "### #{environment_variable} ###"
puts ENV[environment_variable]
puts
end
display 'DIALOG_1'
display 'DIALOG_1_PORT_NAME'
display 'DIALOG_PORT_NAME'
display 'MATEFLAGS'
display 'TM_APP_IDENTIFIER'
display 'TM_APP_PATH'
display 'TM_BUNDLE_ITEM_NAME'
display 'TM_BUNDLE_ITEM_UUID'
display 'TM_BUNDLE_SUPPORT'
display 'TM_COLUMN_NUMBER'
display 'TM_COMMENT_END_2'
display 'TM_COMMENT_START'
display 'TM_COMMENT_START_2'
display 'TM_CURRENT_LINE'
display 'TM_CURRENT_THEME_PATH'
display 'TM_DISPLAYNAME'
display 'TM_DOCUMENT_UUID'
display 'TM_ERROR_FD'
display 'TM_FILENAME'
display 'TM_FILEPATH'
display 'TM_FILE_IS_UNTITLED'
display 'TM_FULLNAME'
display 'TM_GIT'
display 'TM_HG'
display 'TM_LINE_INDEX'
display 'TM_LINE_NUMBER'
display 'TM_LINK_FORMAT'
display 'TM_MATE'
display 'TM_ORGANISATION'
display 'TM_PID'
display 'TM_PROPERTIES_PATH'
display 'TM_QUERY'
display 'TM_RUBY'
display 'TM_SCM_COMMIT_WINDOW'
display 'TM_SCOPE'
display 'TM_SCOPE_LEFT'
display 'TM_SELECTION'
display 'TM_SOFT_TABS'
display 'TM_SUPPORT_PATH'
display 'TM_TAB_SIZE'
display 'TM_THEME_PATH'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment