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
OpenEdx
configuration
Commits
ee1fbca6
Commit
ee1fbca6
authored
Dec 29, 2014
by
Max Rothman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added standard aliases and colors to localdev bashrc & cleanup old
cruft
parent
21e5355a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
18 deletions
+14
-18
playbooks/roles/local_dev/app_bashrc.j2
+0
-18
playbooks/roles/local_dev/templates/app_bashrc.j2
+14
-0
No files found.
playbooks/roles/local_dev/app_bashrc.j2
deleted
100644 → 0
View file @
21e5355a
#! /usr/bin/env bash
# {{ ansible_managed }}
source
"{{ item.home }}/{{ item.env }}"
# If X11 forwarding is enabled, then use the DISPLAY value
# already set and use the X11 session cookie
if
[
-n
"
$DISPLAY
"
]
;
then
export
XAUTHORITY
=
"{{ localdev_xauthority }}"
# Otherwise, configure the display to use the virtual frame buffer
else
export
DISPLAY
=
"{{ localdev_xvfb_display }}"
fi
# Default to the code repository
cd
"{{ item.home }}/{{ item.repo }}"
playbooks/roles/local_dev/templates/app_bashrc.j2
View file @
ee1fbca6
...
...
@@ -2,6 +2,20 @@
# {{ ansible_managed }}
# enable color support of ls and also add handy aliases
if
[
-x
/usr/bin/dircolors
]
;
then
eval
"
$(
dircolors
-b
)
"
alias ls
=
'ls --color=auto'
alias grep
=
'grep --color=auto'
alias
fgrep
=
'fgrep --color=auto'
alias
egrep
=
'egrep --color=auto'
fi
# some more ls aliases
alias
ll
=
'ls -Al'
alias
la
=
'ls -A'
source
"{{ item.home }}/{{ item.env }}"
# If X11 forwarding is enabled, then use the DISPLAY value
...
...
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