Skip to content

Instantly share code, notes, and snippets.

@chrisolsen
chrisolsen / gcs
Last active November 6, 2019 21:02
git commit and squash to PR branch
#!/bin/bash
git branch | grep "\*" | cut -d " " -f 2 | {
read br
git checkout -B pr-$br
git reset --soft master
git commit -m "$1"
echo "pushing to pr-$br..."
git push origin "pr-$br" -f
git checkout $br
@chrisolsen
chrisolsen / keybindings.json
Last active September 12, 2019 17:28
vscode keybindings.json
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+shift+v",
"command": "workbench.action.terminal.split",
"when": "terminalFocus"
},
{
"key": "ctrl+shift+b",
"command": "workbench.action.focusActiveEditorGroup",
@chrisolsen
chrisolsen / settings.json
Created February 4, 2019 16:08
vscode settings
{
"vim.easymotion": true,
"vim.sneak": true,
"vim.incsearch": true,
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.hlsearch": true,
"vim.insertModeKeyBindings": [
{
"before": [
settings:
legacy:
force: false
interval: 100ms
server:
status: false
open: false
host: localhost
port: 5001
schema: