Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eic_container
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
containers
eic_container
Commits
982fe9ae
Commit
982fe9ae
authored
3 years ago
by
Sylvester Joosten
Browse files
Options
Downloads
Plain Diff
Merge branch 'colorize_grep' into 'master'
Also export colorized grep See merge request
!85
parents
3ce98b13
cd34439a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!85
Also export colorized grep
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
containers/jug/eic-env.sh
+4
-0
4 additions, 0 deletions
containers/jug/eic-env.sh
with
4 additions
and
0 deletions
containers/jug/eic-env.sh
+
4
−
0
View file @
982fe9ae
...
@@ -17,6 +17,9 @@ function ls {
...
@@ -17,6 +17,9 @@ function ls {
function
less
{
function
less
{
/usr/bin/less
-R
$@
/usr/bin/less
-R
$@
}
}
function
grep
{
/bin/grep
--color
=
auto
$@
}
MYSHELL
=
$(
ps
-p
$$
|
awk
'{print($4);}'
|
tail
-n1
)
MYSHELL
=
$(
ps
-p
$$
|
awk
'{print($4);}'
|
tail
-n1
)
## only export the functions for bash, as this does not work
## only export the functions for bash, as this does not work
## in all shells and we only care about bash here. Note that
## in all shells and we only care about bash here. Note that
...
@@ -25,5 +28,6 @@ MYSHELL=$(ps -p $$ | awk '{print($4);}' | tail -n1)
...
@@ -25,5 +28,6 @@ MYSHELL=$(ps -p $$ | awk '{print($4);}' | tail -n1)
if
[
"
$MYSHELL
"
==
"bash"
]
;
then
if
[
"
$MYSHELL
"
==
"bash"
]
;
then
export
-f
ls
export
-f
ls
export
-f
less
export
-f
less
export
-f
grep
fi
fi
unset
MYSHELL
unset
MYSHELL
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