home: zsh: launch tmux when starting a shell
This commit is contained in:
parent
4055ef17f0
commit
24de1890fc
|
@ -46,6 +46,16 @@ in
|
||||||
# Modal editing is life, but CLI benefits from emacs gymnastics
|
# Modal editing is life, but CLI benefits from emacs gymnastics
|
||||||
defaultKeymap = "emacs";
|
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 [
|
initExtra = lib.concatMapStrings builtins.readFile [
|
||||||
./completion-styles.zsh
|
./completion-styles.zsh
|
||||||
./extra-mappings.zsh
|
./extra-mappings.zsh
|
||||||
|
|
Loading…
Reference in a new issue