File tree 2 files changed +12
-6
lines changed
2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ themes/command_duration.theme.bash
133
133
themes/easy
134
134
themes/essential
135
135
themes/modern
136
+ themes/pete
136
137
themes/powerline
137
138
themes/pure
138
139
themes/purity
Original file line number Diff line number Diff line change 1
1
# shellcheck shell=bash
2
+ # shellcheck disable=SC2034 # Expected behavior for themes.
2
3
3
- prompt_setter () {
4
- # Save history
5
- _save-and-reload-history 1
6
- PS1=" ($( clock_prompt) ) $( scm_char) [$blue \u$reset_color @$green \H$reset_color ] $yellow \w${reset_color} $( scm_prompt_info) $( ruby_version_prompt) $reset_color "
7
- PS2=' > '
8
- PS4=' + '
4
+ function prompt_setter() {
5
+ local clock_prompt scm_char scm_prompt_info ruby_version_prompt
6
+ clock_prompt=" $( clock_prompt) "
7
+ scm_char=" $( scm_char) "
8
+ scm_prompt_info=" $( scm_prompt_info) "
9
+ ruby_version_prompt=" $( ruby_version_prompt) "
10
+ _save-and-reload-history 1 # Save history
11
+ PS1=" (${clock_prompt} ) ${scm_char} [${blue?} \u${reset_color?} @${green?} \H${reset_color?} ] ${yellow?} \w${reset_color?}${scm_prompt_info}${ruby_version_prompt} ${reset_color?} "
12
+ PS2=' > '
13
+ PS4=' + '
9
14
}
10
15
11
16
safe_append_prompt_command prompt_setter
You can’t perform that action at this time.
0 commit comments