Sane OSX defaults. Based on ~/.osx by @mathiasbynens.
Installs Homebrew, Git, git-friendly, Node.js, etc.
Assuming your work repositories are inside the ~/PIZZA
folder.
- First create a separate Git config:
git config -f ~/PIZZA/.gitconfig user.email "[email protected]"
git config -f ~/PIZZA/.gitconfig user.name "Artem Sapegin"
- Then create
~/.gitlocal
file:
[includeIf "gitdir:~/PIZZA/"]
path = ~/PIZZA/.gitconfig
cd ~/repo
git config user.email "[email protected]"
git config user.name "Artem Sapegin"
Create ~/Library/KeyBindings/DefaultKeyBinding.dict
:
{
"\UF729" = moveToBeginningOfParagraph:; // home
"\UF72B" = moveToEndOfParagraph:; // end
"$\UF729" = moveToBeginningOfParagraphAndModifySelection:; // shift-home
"$\UF72B" = moveToEndOfParagraphAndModifySelection:; // shift-end
"^\UF729" = moveToBeginningOfDocument:; // ctrl-home
"^\UF72B" = moveToEndOfDocument:; // ctrl-end
"^$\UF729" = moveToBeginningOfDocumentAndModifySelection:; // ctrl-shift-home
"^$\UF72B" = moveToEndOfDocumentAndModifySelection:; // ctrl-shift-end
}
Create a script:
#!/usr/bin/env bash
if [[ "$1" == /Users/admin/badoo/* ]]; then
/usr/local/bin/pstorm "$1"
open /Applications/PhpStorm.app # Focus
else
open "$1"
fi
Go to iTerm2 preferences → Profiles → Advanced → Semantic History. Choose Run command and type: /Users/admin/bin/iopen "\1"
.
Go to iTerm2 preferences → Profiles → Advanced → Triggers. Click Edit.
Description | RegExp | Action | Color |
---|---|---|---|
Highlight Git merge conflicts | CONFLICT \([^)]+\)\:.* |
Highlight Text | Text: f2ac00 |