Last active
December 14, 2015 13:09
-
-
Save PierrickKoch/5091562 to your computer and use it in GitHub Desktop.
some bash setup with cool PS1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # my bashrc | |
| # | |
| # ROS setup | |
| #source ~/work/ros-addons/setup.bash | |
| #source /opt/ros/groovy/setup.bash | |
| source /opt/ros/fuerte/setup.bash | |
| # Python CLI completion and history | |
| export PYTHONSTARTUP=~/work/.pyrc | |
| # Sublime Text 2 | |
| alias sublime=~/.sublimetext2/sublime_text | |
| # Blender for MORSE | |
| export MORSE_BLENDER=~/work/blender-2.65a-linux-glibc211-i686/blender | |
| alias blender=$MORSE_BLENDER | |
| # MORSE compile | |
| alias cmorse="(cd ~/work/morse/ && rm -rf build && mkdir build && cd build && cmake -DPYMORSE_SUPPORT=ON -DBUILD_ROS_SUPPORT=ON -DPYTHON_EXECUTABLE=/usr/local/bin/python3.3 .. && make && sudo make install)" | |
| # tmp=${PS1::-3} | |
| __bold=`tput bold` | |
| __offbold=`tput sgr0` | |
| __last_err() { | |
| [[ "$?" != "0" ]] && lasterrps1="\e[1;31m!\e[0m" || lasterrps1="" | |
| echo -ne $lasterrps1 | |
| } | |
| export PS1="╭─\u@\h:\w \$(__last_err) \${__bold}\$(__git_ps1)\${__offbold}\n╰─➤ " | |
| # MORSE ROS Testing | |
| export MORSE_SRC_ROOT="$HOME/work/morse" | |
| export MORSE_ROS_TESTING="$MORSE_SRC_ROOT/testing/middlewares/ros/morsetesting" | |
| export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$MORSE_ROS_TESTING | |
| alias cmorsetesting="(export ROS_PACKAGE_PATH=\$ROS_PACKAGE_PATH:\$MORSE_ROS_TESTING && cd \$MORSE_ROS_TESTING && rosmake)" | |
| # HISTSIZE was 2000 and not enough | |
| export HISTSIZE=8000 | |
| # Colorize MORSE :-) | |
| alias morse="morse -c" | |
| alias steam="~/Steam/steam.sh" | |
| # robotpkg | |
| export PATH=$PATH:$HOME/openrobots/sbin | |
| export ROBOTPKG_BASE=$HOME/openrobots | |
| export PATH=$PATH:$HOME/openrobots/bin | |
| export PKG_CONFIG_PATH=$HOME/openrobots/lib/pkgconfig:$PKG_CONFIG_PATH | |
| export PYTHONPATH=$PYTHONPATH:$HOME/openrobots/lib/python2.7/site-packages | |
| ########################################### | |
| # MORSE rebase current dev branches HOWTO # | |
| ########################################### | |
| # list="master kuka feature-robot-mass feature-fullscreen save-compress velodyne-depth feature-socket-vw-pyside" | |
| # for branch in $list; do git checkout $branch; git rebase laas/master; done; git checkout master; git push origin $list -f | |
| ########################################### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment