mirror of
https://github.com/eRgo35/nix-config.git
synced 2026-02-04 15:46:12 +01:00
tmux and zsh crash fix
This commit is contained in:
@@ -39,7 +39,8 @@ in {
|
|||||||
[[ ! -f ${./p10k.zsh} ]] || source ${./p10k.zsh}
|
[[ ! -f ${./p10k.zsh} ]] || source ${./p10k.zsh}
|
||||||
eval "$(zoxide init --cmd cd zsh)"
|
eval "$(zoxide init --cmd cd zsh)"
|
||||||
if [ -x "$(command -v tmux)" ] && [ -n "$DISPLAY" ] && [ -z "$TMUX" ]; then
|
if [ -x "$(command -v tmux)" ] && [ -n "$DISPLAY" ] && [ -z "$TMUX" ]; then
|
||||||
exec tmux new-session -A -s $USER >/dev/null 2>&1
|
# exec tmux new-session -A -s $USER >/dev/null 2>&1
|
||||||
|
exec tmux new-session -t $USER >/dev/null 2>&1 | tmux new-session -A -s $USER >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -13,9 +13,6 @@
|
|||||||
yank
|
yank
|
||||||
];
|
];
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
# reattach userspaces
|
|
||||||
set -g default-command "reattach-to-user-namespace -l zsh"
|
|
||||||
|
|
||||||
# history limit
|
# history limit
|
||||||
set -g history-limit 5000
|
set -g history-limit 5000
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user