Compare commits
2 commits
4055ef17f0
...
07cf0fa4da
Author | SHA1 | Date | |
---|---|---|---|
Bruno BELANYI | 07cf0fa4da | ||
Bruno BELANYI | 24de1890fc |
|
@ -157,7 +157,9 @@ in
|
|||
keybindings = lib.my.recursiveMerge [
|
||||
{
|
||||
# The basics
|
||||
"${modifier}+Return" = "exec ${terminal}";
|
||||
"${modifier}+Return" = "exec ${terminal} ${
|
||||
lib.optionalString config.my.home.tmux.enable "-e tmux new-session"
|
||||
}";
|
||||
"${modifier}+Shift+Return" = "exec env TMUX=nil ${terminal}";
|
||||
"${modifier}+Shift+q" = "kill";
|
||||
"${modifier}+f" = "fullscreen toggle";
|
||||
|
|
|
@ -46,6 +46,16 @@ in
|
|||
# Modal editing is life, but CLI benefits from emacs gymnastics
|
||||
defaultKeymap = "emacs";
|
||||
|
||||
# Make those happen early to avoid doing double the work
|
||||
initExtraFirst =
|
||||
lib.optionalString config.my.home.tmux.enable ''
|
||||
# Launch tmux unless already inside one
|
||||
if [ -z "$TMUX" ]; then
|
||||
exec tmux new-session
|
||||
fi
|
||||
''
|
||||
;
|
||||
|
||||
initExtra = lib.concatMapStrings builtins.readFile [
|
||||
./completion-styles.zsh
|
||||
./extra-mappings.zsh
|
||||
|
|
Loading…
Reference in a new issue