1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-17 03:30:01 +02:00

scripts/tmuxs: more improvements

This commit is contained in:
Henrik Hautakoski 2025-11-03 07:24:39 +01:00
parent 5b67d85598
commit 5b322780fc
3 changed files with 32 additions and 5 deletions

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
BASE_PATH=$(dirname $(readlink -f $BASH_SOURCE))
source ${BASE_PATH}/helpers.sh
source ${BASE_PATH}/.env
# Scripts
@ -9,7 +10,8 @@ KILL_SCRIPT=${BASE_PATH}/kill.sh
if [[ $# -eq 1 ]]; then
if [[ "$1" == "-a" ]]; then
selected=$($LIST_SESSIONS_SCRIPT | $FZF --bind "ctrl-d:execute(${KILL_SCRIPT} {})+reload(${LIST_SESSIONS_SCRIPT})" --border-label=Session | sed 's/: .*//g')
selected=$($LIST_SESSIONS_SCRIPT | $FZF --bind "ctrl-d:execute(${KILL_SCRIPT} {})+reload(${LIST_SESSIONS_SCRIPT})" \
--border-label=Session | get_session_name)
if [ ! -z "$selected" ]; then
${BASE_PATH}/new.sh $selected
fi