Finish initial setup of tmux-sessionizer

This commit is contained in:
david
2025-04-04 16:55:39 -05:00
parent f777f7632b
commit ac18569866
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