Skip to content

Instantly share code, notes, and snippets.

@xavi-
Last active August 29, 2015 14:19
Show Gist options
  • Save xavi-/9fdd2535bc4260cff081 to your computer and use it in GitHub Desktop.
Save xavi-/9fdd2535bc4260cff081 to your computer and use it in GitHub Desktop.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1="\u \[\e[1;31m\]\W\[\e[m\]\[\e[1;34m\]\$(parse_git_branch)\[\e[m\]$ "
{
"close_windows_when_empty": false,
"color_scheme": "Packages/Color Scheme - Default/Blackboard.tmTheme",
"ensure_newline_at_eof_on_save": true,
"font_size": 11.0,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
],
"indent_guide_options":
[
"draw_active",
"draw_normal"
],
"rulers":
[
100
],
"scroll_past_end": true,
"show_full_path": true,
"wrap_width": 100,
// Set to true to draw a border around the visible rectangle on the minimap.
// The color of the border will be determined by the "minimapBorder" key in
// the color scheme
"draw_minimap_border": true,
// Always visualise the viewport on the minimap, as opposed to only
// showing it on mouse over
"always_show_minimap_viewport": true,
}
[
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+shift+v"], "command": "paste" },
{ "keys": ["alt+v"], "command": "scroll_lines", "args": {"amount": 20.0} },
{ "keys": ["ctrl+v"], "command": "scroll_lines", "args": {"amount": -20.0} },
{
"keys": ["f1"],
"command": "dired",
"args": { "immediate": true }
},
{
"keys": ["enter"],
"command": "dired_select",
"context": [
{ "key": "selector", "operator": "equal", "operand": "text.dired" },
{ "key": "setting.dired_rename_mode", "operand": false }
]
},
{
"no_outside_adj": true,
"keys": ["ctrl+shift+m"],
"command": "bh_key",
"args":
{
"lines" : true,
"plugin":
{
"type": ["__all__"],
"command": "bh_modules.bracketselect"
}
}
}
]
@xavi-
Copy link
Author

xavi- commented Apr 29, 2015

Delete ctrl + shift + p keyboard shortcut in default keyboard bindings.

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