Skip to content
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
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,28 @@ directory so that it will be loaded instead of the original one.

### Configuration

#### Enable showing full path in prompt

To show full path to the current working directory in shell prompt rather than just its basename,
add the following line to `~/.bashrc`:

```bash
OMB_PROMPT_FULL_PATH=true
```

By default, OhMyBash trims the working directory path in shell prompt to just a few innermost components.
To disable that, unset the `PROMPT_DIRTRIM` environment variable in your `~/.bashrc`:

```bash
unset PROMPT_DIRTRIM
```

or set it to a different value to change the limit:

```bash
PROMPT_DIRTRIM=4
```

#### Enable/disable python venv

The python virtualenv/condaenv information in the prompt may be enabled by the following line in `~/.bashrc`.
Expand Down
4 changes: 4 additions & 0 deletions lib/omb-prompt-base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ CLOCK_THEME_PROMPT_SUFFIX=''

THEME_PROMPT_HOST='\H'

[[ $OMB_PROMPT_FULL_PATH == true ]] \
&& THEME_PROMPT_WORKDIR='\w' \
|| THEME_PROMPT_WORKDIR='\W'
Comment on lines +15 to +16

@native-api native-api May 28, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CONTRIBUTING.md says that internal variables should be named "_omb_${namespace}_${varname}". But I see that in reality, only internal functions are named so. So naming my new variable like that would be inconsistent with the codebase.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other variables in this file are not internal variables, but intended to be set by the user for customization. Otherwise it's strange that the variables always have specific constant values. In addition, while CONTRIBUTING.md says

Initially, we haven't cared about the naming convention very much, but we now try to improve it. In particular, the new codes should follow this naming convention.

the code in omb-prompt-base.sh is not "the new codes" but one of the oldest codes in Oh-My-Bash.


SCM_CHECK=${SCM_CHECK:=true}

SCM_THEME_PROMPT_DIRTY=' ✗'
Expand Down
2 changes: 1 addition & 1 deletion themes/axin/axin.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ OMB_PROMPT_SHOW_PYTHON_VENV=${OMB_PROMPT_SHOW_PYTHON_VENV:=false}
function _omb_theme_PROMPT_COMMAND() {
local python_venv
_omb_prompt_get_python_venv
PS1="$python_venv${MAGENTA}\u ${WHITE}@ ${ORANGE}\h ${WHITE}in ${GREEN}\w${WHITE}$SCM_THEME_PROMPT_PREFIX$(clock_prompt) ${PURPLE}\$(scm_prompt_info) \n\$ ${RESET}"
PS1="$python_venv${MAGENTA}\u ${WHITE}@ ${ORANGE}\h ${WHITE}in ${GREEN}$THEME_PROMPT_WORKDIR${WHITE}$SCM_THEME_PROMPT_PREFIX$(clock_prompt) ${PURPLE}\$(scm_prompt_info) \n\$ ${RESET}"
}

THEME_CLOCK_COLOR=${THEME_CLOCK_COLOR:-"${_omb_prompt_white}"}
Expand Down
8 changes: 4 additions & 4 deletions themes/bakke/bakke.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ OMB_PROMPT_VIRTUALENV_FORMAT="${_omb_prompt_bold_gray}(%s)${_omb_prompt_reset_co
OMB_PROMPT_CONDAENV_FORMAT="${_omb_prompt_bold_gray}(%s)${_omb_prompt_reset_color}"

function _omb_theme_PROMPT_COMMAND() {
#PS1="${_omb_prompt_bold_teal}$(scm_char)${_omb_prompt_green}$(scm_prompt_info)${_omb_prompt_purple}$(_omb_prompt_print_ruby_env) ${_omb_prompt_olive}\h ${_omb_prompt_reset_color}in ${_omb_prompt_green}\w ${_omb_prompt_reset_color}\n${_omb_prompt_green}→${_omb_prompt_reset_color} "
#PS1="\n${_omb_prompt_purple}\h: ${_omb_prompt_reset_color} ${_omb_prompt_green}\w\n${_omb_prompt_bold_teal}$(scm_char)${_omb_prompt_green}$(scm_prompt_info) ${_omb_prompt_green}→${_omb_prompt_reset_color} "
#PS1="\n${_omb_prompt_teal}\h: ${_omb_prompt_reset_color} ${_omb_prompt_olive}\w\n${_omb_prompt_brown}$(scm_char)${_omb_prompt_brown}$(scm_prompt_info) ${_omb_prompt_green}→${_omb_prompt_reset_color} "
#PS1="${_omb_prompt_bold_teal}$(scm_char)${_omb_prompt_green}$(scm_prompt_info)${_omb_prompt_purple}$(_omb_prompt_print_ruby_env) ${_omb_prompt_olive}\h ${_omb_prompt_reset_color}in ${_omb_prompt_green}$THEME_PROMPT_WORKDIR ${_omb_prompt_reset_color}\n${_omb_prompt_green}→${_omb_prompt_reset_color} "
#PS1="\n${_omb_prompt_purple}\h: ${_omb_prompt_reset_color} ${_omb_prompt_green}$THEME_PROMPT_WORKDIR\n${_omb_prompt_bold_teal}$(scm_char)${_omb_prompt_green}$(scm_prompt_info) ${_omb_prompt_green}→${_omb_prompt_reset_color} "
#PS1="\n${_omb_prompt_teal}\h: ${_omb_prompt_reset_color} ${_omb_prompt_olive}$THEME_PROMPT_WORKDIR\n${_omb_prompt_brown}$(scm_char)${_omb_prompt_brown}$(scm_prompt_info) ${_omb_prompt_green}→${_omb_prompt_reset_color} "

local python_venv
_omb_prompt_get_python_venv

PS1="\n${python_venv:+$python_venv }${_omb_prompt_teal}\h: ${_omb_prompt_reset_color} ${_omb_prompt_olive}\w ${_omb_prompt_green}$(scm_prompt_info)\n${_omb_prompt_reset_color}→ "
PS1="\n${python_venv:+$python_venv }${_omb_prompt_teal}\h: ${_omb_prompt_reset_color} ${_omb_prompt_olive}$THEME_PROMPT_WORKDIR ${_omb_prompt_green}$(scm_prompt_info)\n${_omb_prompt_reset_color}→ "
}

_omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND
4 changes: 2 additions & 2 deletions themes/bobby-python/bobby-python.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ GIT_THEME_PROMPT_SUFFIX="${_omb_prompt_green}|"
CONDAENV_THEME_PROMPT_SUFFIX="|"

function _omb_theme_PROMPT_COMMAND() {
#PS1="${_omb_prompt_bold_teal}$(scm_char)${_omb_prompt_green}$(scm_prompt_info)${_omb_prompt_purple}$(_omb_prompt_print_ruby_env) ${_omb_prompt_olive}\h ${_omb_prompt_reset_color}in ${_omb_prompt_green}\w ${_omb_prompt_reset_color}\n${_omb_prompt_green}→${_omb_prompt_reset_color} "
PS1="\n${_omb_prompt_olive}$(python_version_prompt) ${_omb_prompt_purple}\h ${_omb_prompt_reset_color}in ${_omb_prompt_green}\w\n${_omb_prompt_bold_teal}$(scm_char)${_omb_prompt_green}$(scm_prompt_info) ${_omb_prompt_green}→${_omb_prompt_reset_color} "
#PS1="${_omb_prompt_bold_teal}$(scm_char)${_omb_prompt_green}$(scm_prompt_info)${_omb_prompt_purple}$(_omb_prompt_print_ruby_env) ${_omb_prompt_olive}\h ${_omb_prompt_reset_color}in ${_omb_prompt_green}$THEME_PROMPT_WORKDIR ${_omb_prompt_reset_color}\n${_omb_prompt_green}→${_omb_prompt_reset_color} "
PS1="\n${_omb_prompt_olive}$(python_version_prompt) ${_omb_prompt_purple}\h ${_omb_prompt_reset_color}in ${_omb_prompt_green}$THEME_PROMPT_WORKDIR\n${_omb_prompt_bold_teal}$(scm_char)${_omb_prompt_green}$(scm_prompt_info) ${_omb_prompt_green}→${_omb_prompt_reset_color} "
}

_omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND
4 changes: 2 additions & 2 deletions themes/bobby/bobby.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ function __bobby_clock {
}

function _omb_theme_PROMPT_COMMAND() {
#PS1="${_omb_prompt_bold_teal}$(scm_char)${_omb_prompt_green}$(scm_prompt_info)${_omb_prompt_purple}$(_omb_prompt_print_ruby_env) ${_omb_prompt_olive}\h ${_omb_prompt_reset_color}in ${_omb_prompt_green}\w ${_omb_prompt_reset_color}\n${_omb_prompt_green}→${_omb_prompt_reset_color} "
PS1="\n$(battery_char) $(__bobby_clock)${_omb_prompt_olive}$(_omb_prompt_print_ruby_env) ${_omb_prompt_purple}\h ${_omb_prompt_reset_color}in ${_omb_prompt_green}\w\n${_omb_prompt_bold_teal}$(scm_prompt_char_info) ${_omb_prompt_green}→${_omb_prompt_reset_color} "
#PS1="${_omb_prompt_bold_teal}$(scm_char)${_omb_prompt_green}$(scm_prompt_info)${_omb_prompt_purple}$(_omb_prompt_print_ruby_env) ${_omb_prompt_olive}\h ${_omb_prompt_reset_color}in ${_omb_prompt_green}$THEME_PROMPT_WORKDIR ${_omb_prompt_reset_color}\n${_omb_prompt_green}→${_omb_prompt_reset_color} "
PS1="\n$(battery_char) $(__bobby_clock)${_omb_prompt_olive}$(_omb_prompt_print_ruby_env) ${_omb_prompt_purple}\h ${_omb_prompt_reset_color}in ${_omb_prompt_green}$THEME_PROMPT_WORKDIR\n${_omb_prompt_bold_teal}$(scm_prompt_char_info) ${_omb_prompt_green}→${_omb_prompt_reset_color} "
}

THEME_SHOW_CLOCK_CHAR=${THEME_SHOW_CLOCK_CHAR:-"true"}
Expand Down
2 changes: 1 addition & 1 deletion themes/candy/candy.theme.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! bash oh-my-bash.module

function _omb_theme_PROMPT_COMMAND() {
PS1="${_omb_prompt_green}\u@\h $(clock_prompt) ${_omb_prompt_reset_color}${_omb_prompt_white}\w${_omb_prompt_reset_color}$(scm_prompt_info)${_omb_prompt_navy} →${_omb_prompt_bold_navy} ${_omb_prompt_reset_color} ";
PS1="${_omb_prompt_green}\u@\h $(clock_prompt) ${_omb_prompt_reset_color}${_omb_prompt_white}$THEME_PROMPT_WORKDIR${_omb_prompt_reset_color}$(scm_prompt_info)${_omb_prompt_navy} →${_omb_prompt_bold_navy} ${_omb_prompt_reset_color} ";
}

THEME_CLOCK_COLOR=${THEME_CLOCK_COLOR:-"$_omb_prompt_navy"}
Expand Down
2 changes: 1 addition & 1 deletion themes/clean/clean.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function _omb_theme_PROMPT_COMMAND() {

if [ "$(whoami)" = root ]; then no_color=$_omb_prompt_brown; else no_color=$_omb_prompt_white; fi

PS1="${no_color}\u${_omb_prompt_reset_color}:${_omb_prompt_navy}\W/${_omb_prompt_reset_color} \[\$(scm_prompt_info)\]$ "
PS1="${no_color}\u${_omb_prompt_reset_color}:${_omb_prompt_navy}$THEME_PROMPT_WORKDIR/${_omb_prompt_reset_color} \[\$(scm_prompt_info)\]$ "
RPROMPT='[\t]'
}

Expand Down
2 changes: 1 addition & 1 deletion themes/emperor/emperor.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function __emperor_clock {
}

function _omb_theme_PROMPT_COMMAND() {
PS1="\n$(__emperor_clock)${_omb_prompt_purple}\h ${_omb_prompt_reset_color}in ${prompt_color}\w\n${_omb_prompt_bold_teal}$(scm_char)${_omb_prompt_green}$(scm_prompt_info) ${_omb_prompt_green}→${_omb_prompt_reset_color} "
PS1="\n$(__emperor_clock)${_omb_prompt_purple}\h ${_omb_prompt_reset_color}in ${prompt_color}$THEME_PROMPT_WORKDIR\n${_omb_prompt_bold_teal}$(scm_char)${_omb_prompt_green}$(scm_prompt_info) ${_omb_prompt_green}→${_omb_prompt_reset_color} "
}

THEME_CLOCK_FORMAT=${THEME_CLOCK_FORMAT:-"%H "}
Expand Down
2 changes: 1 addition & 1 deletion themes/envy/envy.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ GIT_THEME_PROMPT_PREFIX=" ${_omb_prompt_green}|"
GIT_THEME_PROMPT_SUFFIX="${_omb_prompt_green}|"

function _omb_theme_PROMPT_COMMAND() {
PS1="\n${_omb_prompt_olive}$(_omb_prompt_print_ruby_env) ${_omb_prompt_purple}\h ${_omb_prompt_reset_color}in ${_omb_prompt_green}\w\n${_omb_prompt_bold_teal}$(scm_char)${_omb_prompt_green}$(scm_prompt_info) ${_omb_prompt_green}→${_omb_prompt_reset_color} "
PS1="\n${_omb_prompt_olive}$(_omb_prompt_print_ruby_env) ${_omb_prompt_purple}\h ${_omb_prompt_reset_color}in ${_omb_prompt_green}$THEME_PROMPT_WORKDIR\n${_omb_prompt_bold_teal}$(scm_char)${_omb_prompt_green}$(scm_prompt_info) ${_omb_prompt_green}→${_omb_prompt_reset_color} "
}

_omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND
2 changes: 1 addition & 1 deletion themes/font/font.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function _omb_theme_PROMPT_COMMAND() {
# Append new history lines to history file
history -a

PS1="$(clock_prompt)$spack_env$python_venv${hostname} ${_omb_prompt_bold_teal}\W $(scm_prompt_char_info)${ret_status}→ ${_omb_prompt_normal}"
PS1="$(clock_prompt)$spack_env$python_venv${hostname} ${_omb_prompt_bold_teal}$THEME_PROMPT_WORKDIR $(scm_prompt_char_info)${ret_status}→ ${_omb_prompt_normal}"
}

_omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND
2 changes: 1 addition & 1 deletion themes/garo/garo.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function _omb_theme_PROMPT_COMMAND() {
# Append new history lines to history file
history -a

PS1="$python_venv${hostname} ${_omb_prompt_bold_teal}\w $(scm_prompt_char_info)${ret_status}→ ${_omb_prompt_normal}"
PS1="$python_venv${hostname} ${_omb_prompt_bold_teal}$THEME_PROMPT_WORKDIR $(scm_prompt_char_info)${ret_status}→ ${_omb_prompt_normal}"
}

_omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND
2 changes: 1 addition & 1 deletion themes/iterate/iterate.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function git_prompt_info {

LAST_PROMPT=""
function _omb_theme_PROMPT_COMMAND() {
local new_PS1="${_omb_prompt_bold_teal}$(scm_char)${_omb_prompt_olive}$(_omb_prompt_print_ruby_env)${_omb_prompt_green}\w $(scm_prompt_info)"
local new_PS1="${_omb_prompt_bold_teal}$(scm_char)${_omb_prompt_olive}$(_omb_prompt_print_ruby_env)${_omb_prompt_green}$THEME_PROMPT_WORKDIR $(scm_prompt_info)"
local new_prompt=$(PS1="$new_PS1" "$BASH" --norc -i </dev/null 2>&1 | sed -n '${s/^\(.*\)exit$/\1/p;}')

if [ "$LAST_PROMPT" = "$new_prompt" ]; then
Expand Down
2 changes: 1 addition & 1 deletion themes/kitsune/kitsune.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function _omb_theme_PROMPT_COMMAND() {
local python_venv
_omb_prompt_get_python_venv

PS1=$TITLEBAR"\n${_omb_prompt_teal}┌─${_omb_prompt_bold_white}[\u@\h]${_omb_prompt_teal}─${_omb_prompt_bold_olive}(\w)$(scm_prompt_info)$python_venv\n${_omb_prompt_teal}└─${_omb_prompt_bold_green}[\A]$SC$BC${_omb_prompt_teal}-${_omb_prompt_bold_teal}[${_omb_prompt_green}${_omb_prompt_bold_green}\$${_omb_prompt_bold_teal}]${_omb_prompt_green} "
PS1=$TITLEBAR"\n${_omb_prompt_teal}┌─${_omb_prompt_bold_white}[\u@\h]${_omb_prompt_teal}─${_omb_prompt_bold_olive}($THEME_PROMPT_WORKDIR)$(scm_prompt_info)$python_venv\n${_omb_prompt_teal}└─${_omb_prompt_bold_green}[\A]$SC$BC${_omb_prompt_teal}-${_omb_prompt_bold_teal}[${_omb_prompt_green}${_omb_prompt_bold_green}\$${_omb_prompt_bold_teal}]${_omb_prompt_green} "
}

# scm theming
Expand Down
4 changes: 2 additions & 2 deletions themes/mairan/mairan.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ function _omb_theme_PROMPT_COMMAND {

# nice prompt
case $(id -u) in
0) PS1="\n${TITLEBAR}${BRACKET_COLOR}┌─${_omb_prompt_normal}$(my_ve)$(chroot)[$my_ps_root][$my_ps_host_root]$(modern_scm_prompt)$(__my_rvm_ruby_version)[${_omb_prompt_green}\w${_omb_prompt_normal}]$(is_vim_shell)${BRACKET_COLOR}
0) PS1="\n${TITLEBAR}${BRACKET_COLOR}┌─${_omb_prompt_normal}$(my_ve)$(chroot)[$my_ps_root][$my_ps_host_root]$(modern_scm_prompt)$(__my_rvm_ruby_version)[${_omb_prompt_green}$THEME_PROMPT_WORKDIR${_omb_prompt_normal}]$(is_vim_shell)${BRACKET_COLOR}
└─▪ ${prompt_symbol} ${_omb_prompt_normal}"
;;
*) PS1="\n${TITLEBAR}${BRACKET_COLOR}┌─${_omb_prompt_normal}$(my_ve)$(chroot)[$my_ps_user][$my_ps_host]$(modern_scm_prompt)${_omb_prompt_normal}$(__my_rvm_ruby_version)[${_omb_prompt_green}\w${_omb_prompt_normal}]$(is_vim_shell)${BRACKET_COLOR}
*) PS1="\n${TITLEBAR}${BRACKET_COLOR}┌─${_omb_prompt_normal}$(my_ve)$(chroot)[$my_ps_user][$my_ps_host]$(modern_scm_prompt)${_omb_prompt_normal}$(__my_rvm_ruby_version)[${_omb_prompt_green}$THEME_PROMPT_WORKDIR${_omb_prompt_normal}]$(is_vim_shell)${BRACKET_COLOR}
└─▪ ${prompt_symbol} ${_omb_prompt_normal}"
;;
esac
Expand Down
2 changes: 1 addition & 1 deletion themes/minimal/minimal.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SCM_THEME_PROMPT_DIRTY=" ${_omb_prompt_brown}✗"
SCM_THEME_PROMPT_CLEAN=" ${_omb_prompt_green}✓"

function _omb_theme_PROMPT_COMMAND {
PS1="$(scm_prompt_info)${_omb_prompt_reset_color} ${_omb_prompt_teal}\W${_omb_prompt_reset_color} "
PS1="$(scm_prompt_info)${_omb_prompt_reset_color} ${_omb_prompt_teal}$THEME_PROMPT_WORKDIR${_omb_prompt_reset_color} "
}

_omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND
2 changes: 1 addition & 1 deletion themes/modern-t/modern-t.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function _omb_theme_PROMPT_COMMAND {
_omb_util_binary_exists t &&
todo_count=[${_omb_prompt_teal}$(command t | wc -l | sed -e's/ *//')${_omb_prompt_reset_color}]

PS1="${TITLEBAR}${border_color}┌─$todo_count${_omb_prompt_normal}$(modern_scm_prompt)[${_omb_prompt_teal}\W${_omb_prompt_normal}]$(is_vim_shell)"
PS1="${TITLEBAR}${border_color}┌─$todo_count${_omb_prompt_normal}$(modern_scm_prompt)[${_omb_prompt_teal}$THEME_PROMPT_WORKDIR${_omb_prompt_normal}]$(is_vim_shell)"
PS1+="\n${border_color}└─▪${_omb_prompt_normal} "
}

Expand Down
2 changes: 1 addition & 1 deletion themes/modern/modern.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function _omb_theme_PROMPT_COMMAND {

PS1=$TITLEBAR
PS1=$PS1$border_color'┌─'$_omb_prompt_normal
PS1=$PS1$(modern_scm_prompt)[$_omb_prompt_teal'\W'$_omb_prompt_normal][$(battery_charge)]$(is_vim_shell)$'\n'
PS1=$PS1$(modern_scm_prompt)[$_omb_prompt_teal'$THEME_PROMPT_WORKDIR'$_omb_prompt_normal][$(battery_charge)]$(is_vim_shell)$'\n'
PS1=$PS1$border_color'└─▪'$_omb_prompt_normal' '
}

Expand Down
2 changes: 1 addition & 1 deletion themes/morris/morris.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ case $TERM in
esac

function _omb_theme_PROMPT_COMMAND() {
PS1="${TITLEBAR}[\u@\h \W $(scm_prompt_info)]\$ "
PS1="${TITLEBAR}[\u@\h $THEME_PROMPT_WORKDIR $(scm_prompt_info)]\$ "
}

# scm theming
Expand Down
2 changes: 1 addition & 1 deletion themes/n0qorg/n0qorg.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# for example:
# ananas ~/Code/bash-it/themes (master*)»
function _omb_theme_PROMPT_COMMAND() {
PS1="${_omb_prompt_bold_navy}[$(hostname)]${_omb_prompt_normal} \w${_omb_prompt_normal} ${_omb_prompt_bold_white}[$(git_prompt_info)]${_omb_prompt_normal}» "
PS1="${_omb_prompt_bold_navy}[$(hostname)]${_omb_prompt_normal} $THEME_PROMPT_WORKDIR${_omb_prompt_normal} ${_omb_prompt_bold_white}[$(git_prompt_info)]${_omb_prompt_normal}» "
}

_omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND
Expand Down
2 changes: 1 addition & 1 deletion themes/nwinkler/nwinkler.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function _omb_theme_PROMPT_COMMAND {
#history -a
#history -c
#history -r
PS1="($(clock_prompt)) $(scm_char) [${_omb_prompt_navy}\u${_omb_prompt_reset_color}@${_omb_prompt_green}\H${_omb_prompt_reset_color}] ${_omb_prompt_olive}\w${_omb_prompt_reset_color}$(scm_prompt_info) ${_omb_prompt_reset_color}\n$(prompt_end) "
PS1="($(clock_prompt)) $(scm_char) [${_omb_prompt_navy}\u${_omb_prompt_reset_color}@${_omb_prompt_green}\H${_omb_prompt_reset_color}] ${_omb_prompt_olive}$THEME_PROMPT_WORKDIR${_omb_prompt_reset_color}$(scm_prompt_info) ${_omb_prompt_reset_color}\n$(prompt_end) "
PS2='> '
PS4='+ '
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function _omb_theme_PROMPT_COMMAND {
history -a
history -c
history -r
PS1="($(clock_prompt)${_omb_prompt_reset_color}) $(scm_char) [${USERNAME_COLOR}\u${_omb_prompt_reset_color}@${HOSTNAME_COLOR}\H${_omb_prompt_reset_color}] ${PATH_COLOR}\w${_omb_prompt_reset_color}$(scm_prompt_info) ${_omb_prompt_reset_color}\n$(prompt_end) "
PS1="($(clock_prompt)${_omb_prompt_reset_color}) $(scm_char) [${USERNAME_COLOR}\u${_omb_prompt_reset_color}@${HOSTNAME_COLOR}\H${_omb_prompt_reset_color}] ${PATH_COLOR}$THEME_PROMPT_WORKDIR${_omb_prompt_reset_color}$(scm_prompt_info) ${_omb_prompt_reset_color}\n$(prompt_end) "
PS2='> '
PS4='+ '
}
Expand Down
2 changes: 1 addition & 1 deletion themes/pete/pete.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function _omb_theme_PROMPT_COMMAND {
history -a
history -c
history -r
PS1="($(clock_prompt)) $(scm_char) [$_omb_prompt_navy\u$_omb_prompt_reset_color@$_omb_prompt_green\H$_omb_prompt_reset_color] $_omb_prompt_olive\w${_omb_prompt_reset_color}$(scm_prompt_info)$(_omb_prompt_print_ruby_env) $_omb_prompt_reset_color "
PS1="($(clock_prompt)) $(scm_char) [$_omb_prompt_navy\u$_omb_prompt_reset_color@$_omb_prompt_green\H$_omb_prompt_reset_color] $_omb_prompt_olive$THEME_PROMPT_WORKDIR${_omb_prompt_reset_color}$(scm_prompt_info)$(_omb_prompt_print_ruby_env) $_omb_prompt_reset_color "
PS2='> '
PS4='+ '
}
Expand Down
2 changes: 1 addition & 1 deletion themes/primer/primer.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# based of the candy theme, but minimized by odbol
function _omb_theme_PROMPT_COMMAND() {
PS1="$(clock_prompt) ${_omb_prompt_reset_color}${_omb_prompt_white}\w${_omb_prompt_reset_color}$(scm_prompt_info)${_omb_prompt_navy} →${_omb_prompt_bold_navy} ${_omb_prompt_reset_color} ";
PS1="$(clock_prompt) ${_omb_prompt_reset_color}${_omb_prompt_white}$THEME_PROMPT_WORKDIR${_omb_prompt_reset_color}$(scm_prompt_info)${_omb_prompt_navy} →${_omb_prompt_bold_navy} ${_omb_prompt_reset_color} ";
}

THEME_CLOCK_COLOR=${THEME_CLOCK_COLOR:-"$_omb_prompt_navy"}
Expand Down
2 changes: 1 addition & 1 deletion themes/pro/pro.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function git_prompt_info {
}

function _omb_theme_PROMPT_COMMAND() {
PS1="\h: \W $(scm_prompt_info)${_omb_prompt_reset_color} $ "
PS1="\h: $THEME_PROMPT_WORKDIR $(scm_prompt_info)${_omb_prompt_reset_color} $ "
}

_omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND
2 changes: 1 addition & 1 deletion themes/purity/purity.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function _omb_theme_PROMPT_COMMAND {
else
local ret_status=${STATUS_THEME_PROMPT_BAD:-${OMB_THEME_PURITY_STATUS_BAD-}}
fi
PS1="\n${_omb_prompt_navy}\w $(scm_prompt_info)\n${ret_status} "
PS1="\n${_omb_prompt_navy}$THEME_PROMPT_WORKDIR $(scm_prompt_info)\n${ret_status} "
}

_omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND
4 changes: 2 additions & 2 deletions themes/rainbowbrite/rainbowbrite.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ function _omb_theme_PROMPT_COMMAND {
history -c
history -r
# displays user@server in purple
# PS1="$_omb_prompt_brown$(scm_char) $_omb_prompt_purple\u@\h$_omb_prompt_reset_color:$_omb_prompt_navy\w$_omb_prompt_olive$(scm_prompt_info)$(_omb_prompt_print_ruby_env) $_omb_prompt_gray\$$_omb_prompt_reset_color "
# PS1="$_omb_prompt_brown$(scm_char) $_omb_prompt_purple\u@\h$_omb_prompt_reset_color:$_omb_prompt_navy$THEME_PROMPT_WORKDIR$_omb_prompt_olive$(scm_prompt_info)$(_omb_prompt_print_ruby_env) $_omb_prompt_gray\$$_omb_prompt_reset_color "
# no user@server
PS1="$_omb_prompt_brown$(scm_char) $_omb_prompt_navy\w$_omb_prompt_olive$(scm_prompt_info)$(_omb_prompt_print_ruby_env) $_omb_prompt_gray\$$_omb_prompt_reset_color "
PS1="$_omb_prompt_brown$(scm_char) $_omb_prompt_navy$THEME_PROMPT_WORKDIR$_omb_prompt_olive$(scm_prompt_info)$(_omb_prompt_print_ruby_env) $_omb_prompt_gray\$$_omb_prompt_reset_color "
PS2='> '
PS4='+ '
}
Expand Down
2 changes: 1 addition & 1 deletion themes/simple/simple.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ case $TERM in
esac

function _omb_theme_PROMPT_COMMAND() {
PS1="${TITLEBAR}${_omb_prompt_red}${_omb_prompt_reset_color}${_omb_prompt_green}\w${_omb_prompt_bold_navy}\[\$(scm_prompt_info)\]${_omb_prompt_normal} "
PS1="${TITLEBAR}${_omb_prompt_red}${_omb_prompt_reset_color}${_omb_prompt_green}$THEME_PROMPT_WORKDIR${_omb_prompt_bold_navy}\[\$(scm_prompt_info)\]${_omb_prompt_normal} "
}

# scm themeing
Expand Down
2 changes: 1 addition & 1 deletion themes/sirup/sirup.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function _omb_theme_PROMPT_COMMAND {
# Check http://github.com/Sirupsen/dotfiles for screenshot
local python_venv
_omb_prompt_get_python_venv
PS1="$_omb_prompt_navy\W/$_omb_prompt_bold_navy$(_omb_theme_sirup_rubygem)$_omb_prompt_bold_purple$python_venv$_omb_prompt_bold_green$(__git_ps1 " (%s)") ${_omb_prompt_normal}$ "
PS1="$_omb_prompt_navy$THEME_PROMPT_WORKDIR/$_omb_prompt_bold_navy$(_omb_theme_sirup_rubygem)$_omb_prompt_bold_purple$python_venv$_omb_prompt_bold_green$(__git_ps1 " (%s)") ${_omb_prompt_normal}$ "
}

_omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND
Loading