Finish initial setup of tmux-sessionizer

This commit is contained in:
2025-01-18 14:14:54 -06:00
parent cb8f07a711
commit 201cd90ee8
10 changed files with 67 additions and 66 deletions

8
run
View File

@ -1,7 +1,7 @@
#!/bin/zsh
single_script_filter=""
dry="0"
local single_script_filter=""
local dry="0"
execute() {
log "execute $@"
@ -17,10 +17,10 @@ while [[ $# > 0 ]]; do
shift
done
script_dir=$(cd $(dirname "${ZSH_SOURCE[0]}") &> /dev/null && pwd)
local script_dir=$(cd $(dirname "${ZSH_SOURCE[0]}") &> /dev/null && pwd)
log "run // script_dir: $script_dir -- args: $single_script_filter"
cd $script_dir
scripts=(`find ./runs -maxdepth 1 -mindepth 1 -type f`)
local scripts=(`find ./runs -maxdepth 1 -mindepth 1 -type f`)
for script in $scripts; do
if [[ -x $script ]]; then
if echo "$script" | grep -qv "$single_script_filter"; then