Move tmux session creation at the very top of zshrc

This commit is contained in:
2024-10-04 22:02:49 +02:00
parent d8ad94730c
commit 40b3ee8f37
2 changed files with 7 additions and 5 deletions
+7
View File
@@ -226,6 +226,13 @@
];
initExtra = builtins.readFile ./init.zsh;
initExtraFirst = ''
# Create a new tmux session (with a random name) and attach.
if [[ -z "$TMUX" ]]; then
exec tmux new-session -s "$(hexdump -n 4 -v -e '/1 "%02X"' /dev/urandom)"
fi
'';
# zprof.enable = true;
sessionVariables = {
-5
View File
@@ -1,8 +1,3 @@
# Create a new tmux session (with a random name) and attach.
if [[ -z "$TMUX" ]]; then
exec tmux new-session -s "$(hexdump -n 4 -v -e '/1 "%02X"' /dev/urandom)"
fi
# This speeds up pasting w/ autosuggest
# https://github.com/zsh-users/zsh-autosuggestions/issues/238
pasteinit() {