Skip to content

Instantly share code, notes, and snippets.

View kdave's full-sized avatar
🤦‍♂️

kdave

🤦‍♂️
  • SUSE
View GitHub Profile
#!/bin/sh -x
#
remote=$(git rev-parse remotes/gh-b/for-next)
expect="${1:-$remote}"
echo "git diff remotes/gh-b/for-next"
echo "expecting: $expect"
if ! git push gh-b b-for-next:for-next; then
# C-b is a bad idea
unbind C-b
set -g prefix C-a
bind a send-prefix
unbind l
bind-key C-a last-window
bind-key space next-window
# split
unbind % # Remove default binding since we’re replacing
unbind '"'