mirror of
https://github.com/zoriya/flake.git
synced 2026-08-15 18:43:42 +00:00
Move tmux session creation at the very top of zshrc
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user