Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gitlab-profile
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hotwheels
gitlab-profile
Commits
d0b7d107
Commit
d0b7d107
authored
5 months ago
by
Antonio Ragagnin
Browse files
Options
Downloads
Patches
Plain Diff
fix clone
parent
6fbdf337
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cloneall.bash
+6
-2
6 additions, 2 deletions
cloneall.bash
with
6 additions
and
2 deletions
cloneall.bash
+
6
−
2
View file @
d0b7d107
...
@@ -63,19 +63,23 @@ if [ ! -z "$tmuxa" ]; then
...
@@ -63,19 +63,23 @@ if [ ! -z "$tmuxa" ]; then
if
!
tmux has-session
-t
$SESSION_NAME
;
then
if
!
tmux has-session
-t
$SESSION_NAME
;
then
# Create a new tmux session
# Create a new tmux session
tmux new-session
-d
-s
$SESSION_NAME
-c
$PWD
[[
-d
full
]]
&&
REPOS+
=(
full
)
[[
-d
full
]]
&&
REPOS+
=(
full
)
for
index
in
"
${
!REPOS[@]
}
"
;
do
for
index
in
"
${
!REPOS[@]
}
"
;
do
value
=
"
${
REPOS
[index]
}
"
value
=
"
${
REPOS
[index]
}
"
if
[[
"
$index
"
==
0
]]
;
then
tmux new-session
-d
-s
$SESSION_NAME
-c
$PWD
else
tmux new-window
-t
$SESSION_NAME
-c
$PWD
fi
# Initialize the environment in the first window
# Initialize the environment in the first window
tmux send-keys
-t
$SESSION_NAME
:
$index
". .env"
C-m
tmux send-keys
-t
$SESSION_NAME
:
$index
". .env"
C-m
tmux send-keys
-t
$SESSION_NAME
:
$index
". venv/bin/activate"
C-m
tmux send-keys
-t
$SESSION_NAME
:
$index
". venv/bin/activate"
C-m
tmux send-keys
-t
$SESSION_NAME
:
$index
"cd
$PWD
/
$value
"
C-m
tmux send-keys
-t
$SESSION_NAME
:
$index
"cd
$PWD
/
$value
"
C-m
tmux rename-window
$value
tmux rename-window
$value
tmux new-window
-t
$SESSION_NAME
-c
$PWD
done
done
fi
fi
tmux attach-session
-t
$SESSION_NAME
tmux attach-session
-t
$SESSION_NAME
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment