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
# Remap alt-left and alt-right to forward/backward word skips. | |
# via @waltz, https://gist.github.com/waltz/8658549 | |
bindkey "^[^[[D" backward-word | |
bindkey "^[^[[C" forward-word |
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
function merge(target, source) { | |
/* Merges two (or more) objects, | |
giving the last one precedence */ | |
if ( typeof target !== 'object' ) { | |
target = {}; | |
} | |
for (var property in source) { |