Skip to content

Commit 6bd7daa

Browse files
committed
Fix final errors
1 parent 79bbdea commit 6bd7daa

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

themes/cooperkid/cooperkid.theme.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function git_short_sha() {
3030
function prompt() {
3131
local return_status=""
3232
local ruby
33-
ruby="${red}$(ruby_version_prompt)${reset_color}"
33+
ruby="${red?}$(ruby_version_prompt)${reset_color?}"
3434
local user_host="${green?}\h @ \w${reset_color?}"
3535
local git_branch
3636
git_branch="$(git_short_sha)${cyan?}$(scm_prompt_info)${reset_color?}"

themes/cupcake/cupcake.theme.bash

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ VIRTUALENV_THEME_PROMPT_SUFFIX=""
2020
# SCM prompts
2121
SCM_NONE_CHAR=""
2222
SCM_GIT_CHAR="[±] "
23-
SCM_GIT_BEHIND_CHAR="${red}${normal}"
24-
SCM_GIT_AHEAD_CHAR="${bold_green}${normal}"
23+
SCM_GIT_BEHIND_CHAR="${red?}${normal?}"
24+
SCM_GIT_AHEAD_CHAR="${bold_green?}${normal?}"
2525
SCM_GIT_UNTRACKED_CHAR=""
26-
SCM_GIT_UNSTAGED_CHAR="${bold_yellow}${normal}"
27-
SCM_GIT_STAGED_CHAR="${bold_green}+${normal}"
26+
SCM_GIT_UNSTAGED_CHAR="${bold_yellow?}${normal?}"
27+
SCM_GIT_STAGED_CHAR="${bold_green?}+${normal?}"
2828

2929
SCM_THEME_PROMPT_DIRTY=""
3030
SCM_THEME_PROMPT_CLEAN=""
3131
SCM_THEME_PROMPT_PREFIX=""
3232
SCM_THEME_PROMPT_SUFFIX=""
3333

3434
# Git status prompts
35-
GIT_THEME_PROMPT_DIRTY=" ${red}${normal}"
36-
GIT_THEME_PROMPT_CLEAN=" ${bold_green}${normal}"
35+
GIT_THEME_PROMPT_DIRTY=" ${red?}${normal?}"
36+
GIT_THEME_PROMPT_CLEAN=" ${bold_green?}${normal?}"
3737
GIT_THEME_PROMPT_PREFIX=""
3838
GIT_THEME_PROMPT_SUFFIX=""
3939

@@ -60,19 +60,19 @@ function virtualenv_prompt {
6060

6161
# Rename tab
6262
function tabname {
63-
printf "\e]1;$1\a"
63+
printf "%s" "\e]1;$1\a"
6464
}
6565

6666
# Rename window
6767
function winname {
68-
printf "\e]2;$1\a"
68+
printf "%s" "\e]2;$1\a"
6969
}
7070

7171
# PROMPT OUTPUT ===============================================================
7272

7373
# Displays the current prompt
7474
function prompt_command() {
75-
PS1="\n${icon_start}$(virtualenv_prompt)${icon_user}${bold_red}\u${normal}${icon_host}${bold_cyan}\h${normal}${icon_directory}${bold_purple}\W${normal}\$([[ -n \$(git branch 2> /dev/null) ]] && echo \" on ${icon_branch} \")${white}$(scm_prompt_info)${normal}\n${icon_end}"
75+
PS1="\n${icon_start}$(virtualenv_prompt)${icon_user}${bold_red?}\u${normal?}${icon_host}${bold_cyan?}\h${normal?}${icon_directory}${bold_purple?}\W${normal?}\$([[ -n \$(git branch 2> /dev/null) ]] && echo \" on ${icon_branch} \")${white?}$(scm_prompt_info)${normal?}\n${icon_end}"
7676
PS2="${icon_end}"
7777
}
7878

0 commit comments

Comments
 (0)