This commit is contained in:
DeveloperDurp 2024-07-17 05:06:35 -05:00
parent 941e3031d7
commit 3f062ff27c
5 changed files with 12 additions and 3 deletions

2
.zshrc
View file

@ -36,7 +36,7 @@ eval "$(oh-my-posh init zsh --config ~/.config/ohmyposh/config.toml)"
if command -v tmux &> /dev/null && [[ "$TERMINAL_EMULATOR" == "JetBrains-JediTerm" ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
cwd=$(pwd)
session_name="goland-$(basename "$cwd" | tr -d '.')"
session_name="$JetBrainsEditor-$(basename "$cwd" | tr -d '.')"
if tmux has-session -t $session_name; then
tmux attach -t $session_name