Difference between revisions of "User:SamuelM"
From ArmadeusWiki
m (→whoami) |
m (→A colored (and useful) prompt) |
||
Line 66: | Line 66: | ||
<source lang="bash"> | <source lang="bash"> | ||
## | ## | ||
− | ## .profile | + | ## ~/.profile |
## | ## | ||
source /etc/profile | source /etc/profile | ||
− | + | ||
bldblk='\033[1;30m' # Black - Bold | bldblk='\033[1;30m' # Black - Bold | ||
bldred='\033[1;31m' # Red | bldred='\033[1;31m' # Red | ||
Line 80: | Line 80: | ||
txtrst='\033[0m' # Text Reset | txtrst='\033[0m' # Text Reset | ||
− | export PS1="${txtrst}\u${bldylw}@${bldgrn}\h ${bldpur}[${bldred}\$ | + | |
+ | export PS1="${txtrst}\u${bldylw}@${bldgrn}\h ${bldpur}[\$(eval \"res=\$?\"; [ \${res} -eq 0 ] && echo -en \"\${bldwht}\${res}\" || echo -en \"\${bldred}err \${res}\")${bldpur}] [${bldblu}\w${bldpur}] ${txtrst}\n\${SHELL:5}${bldgrn}\$${txtrst} " | ||
</source> | </source> |
Revision as of 19:40, 5 December 2010
whoami
- Name:
- Samuel MARTIN
- Background:
-
Student at ESEO (French engineering school), specialised in Embedded systeme and Automation / -
Master student at l'University of Plymouth (UK), in Robotics. - Embedded and System Engineer (Paris, France)
-
Interests
- Robotics
- Computer Vision
- Image & signal processing
- Linux
Objectives
or, what I wanna do with the APF board (APF27 + Devfull)
- Have fun!
- Improve my skills in:
- Hardware development (FPGA)
- System and embedded OS
- Electronic development
- Software development for embedded (tiny) target
- Share my experiments
Contributions
Cross-compile OpenCV for your APF
Tips
A colored (and useful) prompt
##
## ~/.profile
##
source /etc/profile
bldblk='\033[1;30m' # Black - Bold
bldred='\033[1;31m' # Red
bldgrn='\033[1;32m' # Green
bldylw='\033[1;33m' # Yellow
bldblu='\033[1;34m' # Blue
bldpur='\033[1;35m' # Purple
bldcyn='\033[1;36m' # Cyan
bldwht='\033[1;37m' # White
txtrst='\033[0m' # Text Reset
export PS1="${txtrst}\u${bldylw}@${bldgrn}\h ${bldpur}[\$(eval \"res=\$?\"; [ \${res} -eq 0 ] && echo -en \"\${bldwht}\${res}\" || echo -en \"\${bldred}err \${res}\")${bldpur}] [${bldblu}\w${bldpur}] ${txtrst}\n\${SHELL:5}${bldgrn}\$${txtrst} "