Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions cprt_bash_aliases
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

# CPRT bash aliases
# firstTimeInstall.sh will handle adding code to bashrc to source this file

cprt_bash_alias_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
export BASH_ALIASES_CPRT="$cprt_bash_alias_dir/cprt_bash_aliases"
alias eaCPRT='vim $BASH_ALIASES_CPRT && source ~/.bashrc && echo "CPRT Bash Aliases Updated"'
10 changes: 10 additions & 0 deletions firstTimeInstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
locale # check for UTF-8

set -e
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

sudo apt update && sudo apt install -y locales
sudo locale-gen en_US en_US.UTF-8
Expand Down Expand Up @@ -39,6 +40,15 @@ if ! grep -q "source /opt/ros/humble/setup.bash" ~/.bashrc; then
echo "ROS 2 sourced in bashrc"
fi

# Add lines in .bashrc to source the cprt_bash_aliases file if it exists
if ! grep -qF "cprt_bash_aliases" ~/.bashrc; then
{
echo "if [ -f $SCRIPT_DIR/cprt_bash_aliases ]; then"
echo " . $SCRIPT_DIR/cprt_bash_aliases"
echo "fi"
} >> ~/.bashrc
fi

pip3 install black

echo "ROS2 humble install complete!"