Skip to content
Open
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
20 changes: 20 additions & 0 deletions bullet-train.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ if [ ! -n "${BULLETTRAIN_PROMPT_ORDER+1}" ]; then
screen
perl
ruby
ros
virtualenv
nvm
aws
Expand Down Expand Up @@ -96,6 +97,17 @@ if [ ! -n "${BULLETTRAIN_VIRTUALENV_PREFIX+1}" ]; then
BULLETTRAIN_VIRTUALENV_PREFIX=🐍
fi

# ROS
if [ ! -n "${BULLETTRAIN_ROS_BG+1}" ]; then
BULLETTRAIN_ROS_BG=green
fi
if [ ! -n "${BULLETTRAIN_ROS_FG+1}" ]; then
BULLETTRAIN_ROS_FG=black
fi
if [ ! -n "${BULLETTRAIN_ROS_PREFIX+1}" ]; then
BULLETTRAIN_ROS_PREFIX=🤖
fi

# NVM
if [ ! -n "${BULLETTRAIN_NVM_BG+1}" ]; then
BULLETTRAIN_NVM_BG=green
Expand Down Expand Up @@ -584,6 +596,14 @@ prompt_virtualenv() {
fi
}

prompt_ros() {
local ros_distro="$ROS_DISTRO"
if [[ -n $ros_distro ]]; then
prompt_segment $BULLETTRAIN_ROS_BG $BULLETTRAIN_ROS_FG $BULLETTRAIN_ROS_PREFIX" $(basename $ros_distro)"
fi
}


# NVM: Node version manager
prompt_nvm() {
local nvm_prompt
Expand Down