Skip to content

Commit f028bf6

Browse files
committed
initial commit with files
0 parents  commit f028bf6

File tree

4 files changed

+90
-0
lines changed

4 files changed

+90
-0
lines changed

00-exports.rc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# path for fawkes
2+
export PATH=$PATH":~/fawkes-robotino/bin"
3+
4+
# exports for fawkes simulation
5+
export FAWKES_DIR=~/fawkes-robotino
6+
# adapt the first part according to the path to the Gazebo standard plugins
7+
export GAZEBO_PLUGIN_PATH=/usr/lib64/gazebo-2.2/plugins:$FAWKES_DIR/lib/gazebo
8+
# This is the path where you cloned the gazebo models repository
9+
export GAZEBO_MODEL_PATH=~/git/gazebo-models
10+
# This is the path where you cloned the LLSF refbox repository
11+
export LLSF_REFBOX_DIR=~/git/llsf-refbox
12+
13+
# enable ros
14+
# have ros on the PCs
15+
if [[ -f /opt/ros/custom.sh ]]
16+
then
17+
source /opt/ros/custom.sh
18+
fi
19+
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/fawkes-robotino/cfg/move_base_robotino

10-alias.rc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
alias ll='ls -lah --color=auto'
2+
alias grep='grep --color=auto'
3+

20-prompt.rc

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
source ~/.config/bashrc/color
2+
3+
git_availabel=""
4+
5+
# get git prompt if availabel
6+
if [[ -f /usr/share/git/git-prompt.sh ]]
7+
then
8+
source /usr/share/git/git-prompt.sh
9+
git_availabel=true
10+
fi
11+
12+
export PROMPT_COMMAND=set_prompt
13+
14+
set_prompt() {
15+
# crete ps1 parts
16+
# get exit code
17+
local exit="$txtblu(\$?)$txtrst"
18+
# print time
19+
local time="$txtblu\A$txtrst"
20+
# print user@host
21+
local user="$txtgrn\u@\h$txtrst"
22+
# print input prompt
23+
local prompt="$txtblu\$$txtrst"
24+
#print path
25+
local path="$txtblu\w$txtrst"
26+
#get git
27+
local git=
28+
if [[ -n $git_availabel ]]
29+
then
30+
git=__git_ps1
31+
fi
32+
33+
# compose PS1
34+
PS1="\[$exit\] \[$time\] \[$user\] \[$path\] \[$git\]\\n\[$prompt\] "
35+
}

color

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
txtblk='\e[0;30m' # Black - Regular
2+
txtred='\e[0;31m' # Red
3+
txtgrn='\e[0;32m' # Green
4+
txtylw='\e[0;33m' # Yellow
5+
txtblu='\e[0;34m' # Blue
6+
txtpur='\e[0;35m' # Purple
7+
txtcyn='\e[0;36m' # Cyan
8+
txtwht='\e[0;37m' # White
9+
bldblk='\e[1;30m' # Black - Bold
10+
bldred='\e[1;31m' # Red
11+
bldgrn='\e[1;32m' # Green
12+
bldylw='\e[1;33m' # Yellow
13+
bldblu='\e[1;34m' # Blue
14+
bldpur='\e[1;35m' # Purple
15+
bldcyn='\e[1;36m' # Cyan
16+
bldwht='\e[1;37m' # White
17+
unkblk='\e[4;30m' # Black - Underline
18+
undred='\e[4;31m' # Red
19+
undgrn='\e[4;32m' # Green
20+
undylw='\e[4;33m' # Yellow
21+
undblu='\e[4;34m' # Blue
22+
undpur='\e[4;35m' # Purple
23+
undcyn='\e[4;36m' # Cyan
24+
undwht='\e[4;37m' # White
25+
bakblk='\e[40m' # Black - Background
26+
bakred='\e[41m' # Red
27+
bakgrn='\e[42m' # Green
28+
bakylw='\e[43m' # Yellow
29+
bakblu='\e[44m' # Blue
30+
bakpur='\e[45m' # Purple
31+
bakcyn='\e[46m' # Cyan
32+
bakwht='\e[47m' # White
33+
txtrst='\e[0m' # Text Reset

0 commit comments

Comments
 (0)