Open ~/.bash_profile in your favorite editor and add the following content to the bottom.
# Git branch in prompt.
parse_git_branch() {| // Example usage: | |
| // | |
| // void async function() { | |
| // let [clicks, onclick] = iterator() | |
| // document.querySelector('button').addEventListener('click', onclick) | |
| // for await (let click of clicks) console.log(click) | |
| // }() | |
| export default function iterator() { | |
| let done = false |
Note: Some of these shortcuts have been remapped for my own convenience (Preferences->Keymap). These are Mac shortcuts, just use the Windows/Linux equivalent of the Cmd/Option/Ctrl/Del keys.
####Search, Go to, Navigation ####
Cmd + P - Search file
Cmd + Shift + O - Search everywhere
(I swapped the above two recently because I use Cmd + P to search for files most of the time).
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
| <html> | |
| <head> | |
| <title>Google Maps Multiple Markers</title> | |
| <script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script> | |
| </head> | |
| <body> | |
| <div id="map" style="height: 400px; width: 500px;"> | |
| </div> | |
| <script type="text/javascript"> |
| /** | |
| * ionRadioFix - fixes a bug in iOS 9 UIWebView that breaks the tilde selector in CSS. To | |
| * use this fix, include it after your Ionic bundle JS. | |
| * | |
| * Note: due to Angular directive override limitations, you'll need to change any reference | |
| * to <ion-radio> to <ion-radio-fix> to apply this patched radio button. | |
| * | |
| * Also, make sure to add the new CSS from the second part of this gist. | |
| */ | |
| angular.module('ionic').directive('ionRadioFix', function() { |
| // Usage: <textarea auto-grow></textarea> | |
| appModule.directive('autoGrow', function() { | |
| return function(scope, element, attr){ | |
| var update = function(){ | |
| element.css("height", "auto"); | |
| element.css("height", element[0].scrollHeight + "px"); | |
| }; | |
| scope.$watch(attr.ngModel, function(){ | |
| update(); | |
| }); |
| [color] | |
| status = auto | |
| diff = auto | |
| branch = auto | |
| interactive = auto | |
| ui = true | |
| [alias] | |
| amend = !"git commit --amend -C HEAD" | |
| s = status | |
| a = add -A |
| * { | |
| font-size: 12pt; | |
| font-family: monospace; | |
| font-weight: normal; | |
| font-style: normal; | |
| text-decoration: none; | |
| color: black; | |
| cursor: default; | |
| } |
| { | |
| "vars": { | |
| "@gray-base": "#000", | |
| "@gray-darker": "lighten(@gray-base, 13.5%)", | |
| "@gray-dark": "lighten(@gray-base, 20%)", | |
| "@gray": "lighten(@gray-base, 33.5%)", | |
| "@gray-light": "lighten(@gray-base, 46.7%)", | |
| "@gray-lighter": "lighten(@gray-base, 93.5%)", | |
| "@brand-primary": "darken(#428bca, 6.5%)", | |
| "@brand-success": "#5cb85c", |