Skip to content
Snippets Groups Projects
Commit cd34439a authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

Also export colorized grep

parent 3ce98b13
Branches
Tags
1 merge request!85Also export colorized grep
......@@ -17,6 +17,9 @@ function ls {
function less {
/usr/bin/less -R $@
}
function grep {
/bin/grep --color=auto $@
}
MYSHELL=$(ps -p $$ | awk '{print($4);}' | tail -n1)
## only export the functions for bash, as this does not work
## in all shells and we only care about bash here. Note that
......@@ -25,5 +28,6 @@ MYSHELL=$(ps -p $$ | awk '{print($4);}' | tail -n1)
if [ "$MYSHELL" == "bash" ]; then
export -f ls
export -f less
export -f grep
fi
unset MYSHELL
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment