Merge pull request #13 from m1foley/safe_bind_prefix

Don't overwrite $prefix if already bound
This commit is contained in:
Bruno Sutic 2014-12-03 13:19:50 +01:00
commit c95eb0d88d

View File

@ -132,8 +132,10 @@ main() {
fi
# pressing `prefix + prefix` sends <prefix> to the shell
if key_binding_not_set "$prefix"; then
tmux bind-key "$prefix" send-prefix
fi
fi
# If Ctrl-a is prefix then `Ctrl-a + a` switches between alternate windows.
# Works for any prefix character.