|
|
@@ -33,6 +33,19 @@ source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
|
precmd () {print -Pn "\e]2; %~/ \a"}
|
|
|
preexec () {print -Pn "\e]2; %~/ \a"}
|
|
|
|
|
|
+dot_sync() {
|
|
|
+ current_branch=$(git branch | grep '\*.*' | cut -d '*' -f 2 | tr -d ' ')
|
|
|
+ if [ -z "$1" ]; then
|
|
|
+ 1=$current_branch
|
|
|
+ fi
|
|
|
+
|
|
|
+ for branch in $(git branch | grep '^[^*].*$'); do
|
|
|
+ git ch $branch
|
|
|
+ git cherry-pick $1 || { echo 'Problems.. manually cherry-pick'; return 0 }
|
|
|
+ done
|
|
|
+ git ch $current_branch
|
|
|
+}
|
|
|
+
|
|
|
# Set Home, End, Del, PgUp, PgDown keys to actually do something.
|
|
|
bindkey '^[OH' beginning-of-line
|
|
|
bindkey '^[OF' end-of-line
|