Skip to content

Commit

Permalink
fix(tmux): fixed attach to new session
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Dec 29, 2023
1 parent 04120a4 commit e1e1185
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion modules/fish/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
tf = "terraform";

# tmux
ta = "tmux-new";
ta = "tmux new -A -s default";

# mods
gcai =
Expand Down
2 changes: 1 addition & 1 deletion modules/ssh/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
];
extraOptions = {
RequestTTY = "true";
RemoteCommand = "tmux-new";
RemoteCommand = "tmux new -A -s default";
};
};
"aur.archlinux.org" = { identityFile = "~/.ssh/aur"; };
Expand Down
9 changes: 5 additions & 4 deletions packages/bins/bin/dev
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ function am_i_home
grep -w Becker >/dev/null
end

set address darkstar

if am_i_home
ssh -o 'Hostname=darkstar.local' -o 'SetEnv=TERM=xterm-ghostty' dev
else
echo "Using VPN..."
ssh -o 'Hostname=darkstar' -o 'SetEnv=TERM=xterm-ghostty' dev
set address "$address.local"
end

ssh -o "Hostname=$address" -o 'SetEnv=TERM=xterm-ghostty' dev
2 changes: 0 additions & 2 deletions packages/bins/bin/tmux-new

This file was deleted.

0 comments on commit e1e1185

Please sign in to comment.