From 09a87af9ce556376c52fbcb564e14c839b079056 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Wed, 28 Dec 2022 02:06:42 -0600 Subject: [PATCH] Add empty env --- common/bin/dotfiles-setup | 3 +++ common/empty-env/tmux.d.conf | 0 common/fish/config.fish | 2 +- common/tmux/conf | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 common/empty-env/tmux.d.conf diff --git a/common/bin/dotfiles-setup b/common/bin/dotfiles-setup index 0f99f99..52a233d 100755 --- a/common/bin/dotfiles-setup +++ b/common/bin/dotfiles-setup @@ -67,6 +67,9 @@ for s in $c/lytedev-env/*/dotfiles-setup.d.fish source $s $dfp $h $c end +rm -f $ENV_PATH/empty +ln -s $DOTFILES_PATH/common/empty-env $ENV_PATH/empty + # execute the user's shell set ush (getent passwd (whoami) | cut -d: -f7) echo "Dotfiles Installed! Don't forget to setup environments!" diff --git a/common/empty-env/tmux.d.conf b/common/empty-env/tmux.d.conf new file mode 100644 index 0000000..e69de29 diff --git a/common/fish/config.fish b/common/fish/config.fish index 8c4e71a..dc45394 100755 --- a/common/fish/config.fish +++ b/common/fish/config.fish @@ -59,6 +59,6 @@ end # eval (zellij setup --generate-auto-start fish | string collect) # end -if status is-interactive; and not set -q TMUX; and status --is-login; and not string match '/dev/tty*' (tty) +if status is-interactive; and not set -q TMUX; and not status --is-login; and not string match '/dev/tty*' (tty) tmux attach -t default || tmux new -s default end \ No newline at end of file diff --git a/common/tmux/conf b/common/tmux/conf index 2d24cd7..794621e 100644 --- a/common/tmux/conf +++ b/common/tmux/conf @@ -95,4 +95,4 @@ bind A run-shell "#{@resurrect-save-script-path}" bind L run-shell "#{@resurrect-restore-script-path}" set -g @continuum-restore 'on' -set -g @continuum-save-interval '1' +set -g @continuum-save-interval '120'