Skip to content

Instantly share code, notes, and snippets.

View acikgozb's full-sized avatar
🐧
rwxr-xr--

Berk Açıkgöz acikgozb

🐧
rwxr-xr--
View GitHub Profile
@acikgozb
acikgozb / tmux-window.sh
Last active March 24, 2024 16:23
tmux-window.sh
#!/usr/bin/env bash
if [[ -z "$TMUX_PANE" ]]; then
echo "not in a tmux session"
fi
session_name=$(tmux list-panes -t "$TMUX_PANE" -F '#S' | head -n1)
if [[ $session_name == "personal" ]]; then
path_to_search="$HOME/personal"
else