Skip to content

Instantly share code, notes, and snippets.

@Overload119
Created March 2, 2013 13:18
Show Gist options
  • Save Overload119/5070920 to your computer and use it in GitHub Desktop.
Save Overload119/5070920 to your computer and use it in GitHub Desktop.
{
"auto_complete": false,
"auto_complete_commit_on_tab": false,
"auto_complete_delay": 50,
"auto_complete_selector": "source - comment",
"auto_complete_size_limit": 4194304,
"auto_complete_triggers":
[
{
"characters": "<",
"selector": "text.html"
}
],
"auto_complete_with_fields": false,
"auto_indent": true,
"auto_match_enabled": false,
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ttf",
"*.tga",
"*.dds",
"*.ico",
"*.eot",
"*.pdf",
"*.swf",
"*.jar",
"*.zip"
],
"bold_folder_labels": true,
"caret_style": "wide",
"close_windows_when_empty": true,
"color_scheme": "Packages/Theme - Phoenix/Color Scheme/Tomorrow-Night.tmTheme",
"create_window_at_startup": true,
"default_encoding": "UTF-8",
"default_line_ending": "system",
"detect_indentation": true,
"dictionary": "Packages/Language - English/en_US.dic",
"drag_text": false,
"draw_centered": false,
"draw_indent_guides": true,
"draw_white_space": "selection",
"enable_hexadecimal_encoding": true,
"ensure_newline_at_eof_on_save": false,
"fade_fold_buttons": false,
"fallback_encoding": "Western (Windows 1252)",
"file_exclude_patterns":
[
"*.pyc",
"*.pyo",
"*.exe",
"*.dll",
"*.obj",
"*.o",
"*.a",
"*.lib",
"*.so",
"*.dylib",
"*.ncb",
"*.sdf",
"*.suo",
"*.pdb",
"*.idb",
".DS_Store",
"*.class",
"*.psd",
"*.db"
],
"find_selected_text": true,
"fold_buttons": true,
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS"
],
"font_face": "Source Code Pro",
"font_options":
[
],
"font_size": 11.0,
"gutter": true,
"highlight_line": true,
"highlight_modified_tabs": true,
"hot_exit": false,
"ignored_packages":
[
"Vintage"
],
"indent_guide_options":
[
"draw_normal"
],
"indent_subsequent_lines": true,
"indent_to_bracket": false,
"line_numbers": true,
"line_padding_bottom": 0,
"line_padding_top": 0,
"margin": 0,
"match_brackets": true,
"match_brackets_angle": false,
"match_brackets_braces": true,
"match_brackets_content": false,
"match_brackets_square": false,
"match_selection": true,
"match_tags": true,
"move_to_limit_on_up_down": false,
"open_files_in_new_window": true,
"overlay_scroll_bars": "system",
"phoenix_color_blue": true,
"phoenix_color_expanded_folder": true,
"phoenix_dirty_bottom_bar": true,
"phoenix_dirty_bottom_bar_blue": true,
"phoenix_sidebar_tree_large": true,
"phoenix_solid_current_tab": true,
"phoenix_tabs_small": true,
"preview_on_click": true,
"remember_open_files": true,
"rulers":
[
],
"save_on_focus_lost": false,
"scroll_speed": 2.0,
"shift_tab_unindent": true,
"show_full_path": true,
"show_panel_on_build": true,
"show_tab_close_buttons": true,
"smart_indent": false,
"spell_check": false,
"tab_completion": false,
"tab_size": 2,
"theme": "Phoenix Dark.sublime-theme",
"translate_tabs_to_spaces": true,
"tree_animation_enabled": true,
"trim_automatic_white_space": true,
"trim_trailing_white_space_on_save": true,
"use_simple_full_screen": false,
"use_tab_stops": true,
"word_separators": "./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~?",
"word_wrap": "false",
"wrap_width": 0
}
@Overload119
Copy link
Author

Key shortcuts

[
  { "keys": ["super+shift+v"], "command": "paste" },
  { "keys": ["super+v"], "command": "paste_and_indent" }
]

@Overload119
Copy link
Author

function proml {
  local BLUE="\[\033[0;34m\]"
  local RED="\[\033[0;31m\]"
  local LIGHT_RED="\[\033[1;31m\]"
  local GREEN="\[\033[0;32m\]"
  local LIGHT_GREE="\[\033[1;32m\]"
  local WHITE="\[\033[1;37m\]"
  local LIGHT_GRAY="\[\033[0;37m\]"
}
proml

function parse_git_dirty {
  [[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" && $(git status 2>&1 1>/dev/null | tail -n1) != "fatal: Not a git repository (or any of the parent directories): .git" ]] && echo " *"
}
function parse_git_branch {
  git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/\1/"
}

export PS1='\[\033[0;32m\]*\[\033[0;36m\] \w \[\033[0;31m\][ $(parse_git_branch)\[\033[0;33m\]$(parse_git_dirty) \[\033[0;31m\]]\[\033[00m\]: '
export HISTSIZE=10000
export HISTIGNORE="&:ls:[bf]g:exit"
export COMMAND_MODE="unix2003"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment