Appendix: Terminal Customization (Optional)¶
Optional terminal enhancements for advanced users.
Note: These customizations are NOT required for SimToFly tutorials. Only apply if you want to personalize your terminal experience.
Enable Color Prompt¶
Result: Terminal prompt shows colors.
Add Useful Aliases¶
Add at bottom:
# Useful aliases
alias ll='ls -lah'
alias update='sudo apt update && sudo apt upgrade -y'
alias workspace='cd ~/simtofly_ws'
Save, then:
Increase Terminal History¶
Saves last 10,000 commands instead of default 500.
Show Git Branch in Prompt¶
Add at bottom:
# Show git branch in prompt
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1="\u@\h:\w\$(parse_git_branch)\$ "
Save, then: