Last active
November 3, 2023 16:57
-
-
Save joshmfrankel/1981578a445a4c506fd5f24c22129a18 to your computer and use it in GitHub Desktop.
New Computer Setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ "keys": ["super+shift+k"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} }, | |
{ | |
"keys": ["alt+shift+1"], | |
"command": "set_layout", | |
"args": | |
{ | |
"cols": [0.0, 1.0], | |
"rows": [0.0, 1.0], | |
"cells": [[0, 0, 1, 1]] | |
} | |
}, | |
{ | |
"keys": ["alt+shift+2"], | |
"command": "set_layout", | |
"args": | |
{ | |
"cols": [0.0, 0.5, 1.0], | |
"rows": [0.0, 1.0], | |
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]] | |
} | |
}, | |
{ | |
"keys": ["alt+shift+3"], | |
"command": "set_layout", | |
"args": | |
{ | |
"cols": [0.0, 0.5, 1.0], | |
"rows": [0.0, 0.8, 1.0], | |
"cells": [[0, 0, 1, 1], [1, 0, 2, 1], [0, 1, 2, 2]] | |
} | |
}, | |
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} }, | |
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} }, | |
{ "keys": ["option+left"], "command": "move_to", "args": {"to": "bol"} }, // Home | |
{ "keys": ["option+right"], "command": "move_to", "args": {"to": "eol"} }, // End | |
{ "keys": ["super+left"], "command": "move", "args": {"by": "subwords", "forward": false} }, | |
{ "keys": ["super+right"], "command": "move", "args": {"by": "subword_ends", "forward": true} }, | |
{ "keys": ["super+shift+left"], "command": "move", "args": {"by": "subwords", "forward": false, "extend": true} }, | |
{ "keys": ["super+shift+right"], "command": "move", "args": {"by": "subword_ends", "forward": true, "extend": true} }, | |
// Line swapping fixed for modifier keys | |
{ "keys": ["super+shift+up"], "command": "swap_line_up" }, | |
{ "keys": ["super+shift+down"], "command": "swap_line_down" }, | |
{ "keys": ["super+shift+option+d"], "command": "clone_file"}, | |
// Change word deletion to ctrl and super deletion to full line when mapped in osx modifier keys | |
{ "keys": ["super+backspace"], "command": "delete_word", "args": { "forward": false, "sub_words": true } }, | |
{ "keys": ["ctrl+backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard BOL.sublime-macro"} }, | |
// TestRSpec plugin | |
// test current line | |
{ | |
"keys": ["shift+option+r"], | |
"command": "test_current_line", | |
"context": [ | |
{ | |
"key": "selector", | |
"operator": "equal", | |
"operand": "source.ruby, source.rspec" | |
} | |
] | |
}, | |
// test current file | |
{ | |
"keys": ["shift+option+t"], | |
"command": "test_current_file", | |
"context": [ | |
{ | |
"key": "selector", | |
"operator": "equal", | |
"operand": "source.ruby, source.rspec" | |
} | |
] | |
}, | |
// run last spec | |
{ "keys": ["shift+ctrl+super+e"], "command": "run_last_spec" }, | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "=== Setup Homebrew & Dependencies ===" | |
brew tap homebrew/core | |
brew tap heroku/brew | |
brew install coreutils curl git gpg redis ngrok libvips postgresql opensearch heroku | |
echo "=== Preparing asdf version manager ===" | |
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.11.3 | |
arch -arm64 brew install pkg-config cairo pango libpng jpeg giflib librsvg # For asdf yarn | |
. "$HOME/.asdf/asdf.sh" | |
asdf plugin add ruby | |
asdf plugin add nodejs | |
asdf plugin add postgres | |
asdf install ruby latest | |
asdf install nodejs latest | |
asdf install yarn latest | |
echo "=== Preparing Git configuration ===" | |
git config --global user.name $NAME | |
git config --global user.email $GITHUB_EMAIL | |
git config --global init.defaultBranch main | |
git config --global merge.ff only | |
echo "=== App installation & configuration ===" | |
# Heroku cli | |
heroku login | |
# Github cli | |
brew install gh | |
gh auth login | |
# Linear cli | |
# Use with: `yarn lr` | |
yarn add @egcli/lr | |
echo "=== OSX Tweaks ===" | |
# Faster Mac dock showing because it is sloooow by default | |
defaults write com.apple.dock autohide-delay -float 0; killall Dock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Palenight.tmTheme", | |
"default_line_ending": "unix", | |
"draw_minimap_border": true, | |
"ensure_newline_at_eof_on_save": true, | |
"font_size": 15, | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", | |
"CVS", | |
"node_modules" | |
], | |
"highlight_line": true, | |
"ignored_packages": | |
[ | |
"Vintage", | |
], | |
"indent_guide_options": | |
[ | |
"draw_normal", | |
"draw_active" | |
], | |
"line_padding_top": 3, | |
"line_padding_bottom": 3, | |
"rulers": | |
[ | |
80, | |
120 | |
], | |
"show_definitions": false, | |
"scroll_past_end": true, | |
"shift_tab_unindent": true, | |
"tab_size": 2, | |
"theme": "Material-Theme-Palenight.sublime-theme", | |
"translate_tabs_to_spaces": true, | |
"trim_trailing_white_space_on_save": true, | |
"word_wrap": true, | |
"material_theme_accent_yellow": true, | |
"material_theme_bright_scrollbars": true, | |
"material_theme_panel_separator": true, | |
"material_theme_big_fileicons": true, | |
"material_theme_tabs_separator": true, | |
"material_theme_bold_tab": true, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mac
Modifier keys
Apps