Skip to content

Commit a91ef3b

Browse files
committed
fix: tmux invocation conditions
1 parent 8e7a0e4 commit a91ef3b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.bash/bashrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ include /usr/lib/git-core/git-sh-prompt; include /usr/lib/git/git-sh-prompt; inc
6060
include $CODE/scripts/bash/utils.sh
6161

6262
# scripted behavior
63-
if [[ -z "$TMUX" && -z $TERM_PROGRAM && -z "$SKIP_AUTO_TMUX" && ("$SSH_CONNECTION" != "" || -f "/etc/wsl.conf") ]]; then initbash; fi
63+
if [[ -z "$TMUX" && -z "$SKIP_AUTO_TMUX" && "$TERM_PROGRAM" == "WezTerm" && (-n "$SSH_CONNECTION" || -f "/etc/wsl.conf") ]]; then initbash; fi
6464
if [[ "$SSH_CONNECTION" != "" ]]; then trap "kill -9 $(pidof ssh-agent)&>/dev/null" 0; fi
6565

6666
# key binds

.bash/functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ include () {
2929
}
3030

3131
initbash() {
32-
if ping -q -w 1 -c 1 1.1.1.1 > /dev/null; then git -C $DOTFILES pull; fi; tx
32+
cd ~ && if ping -q -w 1 -c 1 1.1.1.1 > /dev/null; then git -C $DOTFILES pull; fi; tx
3333
}
3434

3535
gsubrm() {

0 commit comments

Comments
 (0)