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:
parent
5b67d85598
commit
5b322780fc
3 changed files with 32 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue