diff options
| author | pryazha <pryadeiniv@mail.ru> | 2025-10-12 15:22:37 +0500 |
|---|---|---|
| committer | pryazha <pryadeiniv@mail.ru> | 2025-10-12 15:22:37 +0500 |
| commit | ea0c73a9bad27262518d08139f312fc750c7167a (patch) | |
| tree | 488f35259152d3874efb266523f4941831134dd7 /scripts/tmuxprojects | |
| parent | 2789e7aef1a2b44188b35d90c9ea87d594877d77 (diff) | |
using xterm with Xresources now, also trying to immplement mklinks
Diffstat (limited to 'scripts/tmuxprojects')
| -rwxr-xr-x | scripts/tmuxprojects | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/scripts/tmuxprojects b/scripts/tmuxprojects index f8c975c..0c93aa6 100755 --- a/scripts/tmuxprojects +++ b/scripts/tmuxprojects @@ -1,15 +1,12 @@ #!/bin/sh - -dirs=" -$HOME -$HOME/projects/dotfiles -$HOME/projects/projecteuler -$HOME/clone/opengl_learning -" - -for dir in $dirs ; do - if [ -d "$dir" ] ; then - name=$(basename $dir) - tmux new -s $name -d -c $dir +dir=`realpath $0` +dir=`dirname $dir` +projects=`cat $dir/../projects` +for project in $projects ; do + project="$HOME/$project" + if [ ! -d "$project" ] ; then + continue fi + name=`basename $project` + tmux new -s $name -d -c $project done |
