Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
b1315eb7
Commit
b1315eb7
authored
Dec 19, 2016
by
Ned Batchelder
Committed by
GitHub
Dec 19, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3570 from edx/ned/bashrc.d
Use a .bashrc.d directory for more flexible configuration
parents
c6a96575
fced48c7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
4 deletions
+19
-4
playbooks/roles/local_dev/files/paver_autocomplete.sh
+0
-0
playbooks/roles/local_dev/tasks/main.yml
+12
-2
playbooks/roles/local_dev/templates/app_bashrc.j2
+7
-2
No files found.
playbooks/roles/local_dev/files/paver_autocomplete
→
playbooks/roles/local_dev/files/paver_autocomplete
.sh
View file @
b1315eb7
File moved
playbooks/roles/local_dev/tasks/main.yml
View file @
b1315eb7
...
...
@@ -72,11 +72,21 @@
line
:
"
.
{{
localdev_home
}}/share_x11"
state
:
present
# Create a .bashrc.d directory to hold extra bash initializations
-
name
:
Create .bashrc.d dir
file
:
path
:
"
{{
item.home
}}/.bashrc.d"
owner
:
"
{{
item.user
}}"
group
:
"
{{
common_web_group
}}"
state
:
directory
with_items
:
"
{{
localdev_accounts
}}"
when
:
item.user != 'None'
# Create scripts to add paver autocomplete
-
name
:
Add paver autocomplete
copy
:
src
:
paver_autocomplete
dest
:
"
{{
item.home
}}/.
paver_autocomplete
"
src
:
paver_autocomplete
.sh
dest
:
"
{{
item.home
}}/.
bashrc.d/paver_autocomplete.sh
"
owner
:
"
{{
item.user
}}"
group
:
"
{{
common_web_group
}}"
mode
:
"
0755"
...
...
playbooks/roles/local_dev/templates/app_bashrc.j2
View file @
b1315eb7
...
...
@@ -28,8 +28,13 @@ else
export
DISPLAY
=
"{{ localdev_xvfb_display }}"
fi
cd
"{{ item.home }}/{{ item.repo }}"
# Import ~/.bashrc.d modules
if
[
-d
{{
item.home
}}
/.bashrc.d
]
;
then
for
BASHMODULE
in
{{
item.home
}}
/.bashrc.d/
*
;
do
source
$BASHMODULE
done
fi
source
"{{ item.home }}/.paver_autocomplete
"
cd
"{{ item.home }}/{{ item.repo }}
"
export
JSCOVER_JAR
=
"/usr/local/bin/JSCover-all-{{ localdev_jscover_version }}.jar"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment