mirror of
https://github.com/tmux-plugins/tmux-sensible.git
synced 2024-11-24 17:28:49 +00:00
Merge pull request #13 from m1foley/safe_bind_prefix
Don't overwrite $prefix if already bound
This commit is contained in:
commit
c95eb0d88d
@ -132,8 +132,10 @@ main() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# pressing `prefix + prefix` sends <prefix> to the shell
|
# pressing `prefix + prefix` sends <prefix> to the shell
|
||||||
|
if key_binding_not_set "$prefix"; then
|
||||||
tmux bind-key "$prefix" send-prefix
|
tmux bind-key "$prefix" send-prefix
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# If Ctrl-a is prefix then `Ctrl-a + a` switches between alternate windows.
|
# If Ctrl-a is prefix then `Ctrl-a + a` switches between alternate windows.
|
||||||
# Works for any prefix character.
|
# Works for any prefix character.
|
||||||
|
Loading…
Reference in New Issue
Block a user