File tree 3 files changed +36
-6
lines changed
doubletime_multiline_pyonly
3 files changed +36
-6
lines changed Original file line number Diff line number Diff line change 1
1
# shellcheck shell=bash
2
2
3
+ case $HISTCONTROL in
4
+ * ' auto' * )
5
+ : # Do nothing, already configured.
6
+ ;;
7
+ * )
8
+ # Append new history lines to history file
9
+ HISTCONTROL=" ${HISTCONTROL:- }${HISTCONTROL: +: } autosave"
10
+ ;;
11
+ esac
12
+ safe_append_preexec ' _bash_it_history_auto_load'
13
+ safe_append_prompt_command ' _bash_it_history_auto_save'
14
+
3
15
SCM_THEME_PROMPT_DIRTY=' '
4
16
SCM_THEME_PROMPT_CLEAN=' '
5
17
SCM_GIT_CHAR=" ${bold_cyan} ±${normal} "
29
41
fi
30
42
31
43
function prompt_setter() {
32
- # Save history
33
- _save-and-reload-history 1
34
44
PS1="
35
45
$( clock_prompt) $( scm_char) [${THEME_PROMPT_HOST_COLOR} \u@${THEME_PROMPT_HOST} $reset_color ] $( virtualenv_prompt) $( ruby_version_prompt) \w
36
46
$( scm_prompt) $reset_color $ "
Original file line number Diff line number Diff line change 2
2
3
3
source " $BASH_IT /themes/doubletime/doubletime.theme.bash"
4
4
5
+ case $HISTCONTROL in
6
+ * ' auto' * )
7
+ : # Do nothing, already configured.
8
+ ;;
9
+ * )
10
+ # Append new history lines to history file
11
+ HISTCONTROL=" ${HISTCONTROL:- }${HISTCONTROL: +: } autosave"
12
+ ;;
13
+ esac
14
+ safe_append_preexec ' _bash_it_history_auto_load'
15
+ safe_append_prompt_command ' _bash_it_history_auto_save'
16
+
5
17
function prompt_setter() {
6
- # Save history
7
- _save-and-reload-history 1
8
18
PS1="
9
19
$( clock_prompt) $( scm_char) [$THEME_PROMPT_HOST_COLOR \u@${THEME_PROMPT_HOST} $reset_color ] $( virtualenv_prompt) $( ruby_version_prompt)
10
20
\w
Original file line number Diff line number Diff line change 2
2
3
3
source " $BASH_IT /themes/doubletime/doubletime.theme.bash"
4
4
5
+ case $HISTCONTROL in
6
+ * ' auto' * )
7
+ : # Do nothing, already configured.
8
+ ;;
9
+ * )
10
+ # Append new history lines to history file
11
+ HISTCONTROL=" ${HISTCONTROL:- }${HISTCONTROL: +: } autosave"
12
+ ;;
13
+ esac
14
+ safe_append_preexec ' _bash_it_history_auto_load'
15
+ safe_append_prompt_command ' _bash_it_history_auto_save'
16
+
5
17
function prompt_setter() {
6
- # Save history
7
- _save-and-reload-history 1
8
18
PS1="
9
19
$( clock_prompt) $( scm_char) [$THEME_PROMPT_HOST_COLOR \u@${THEME_PROMPT_HOST} $reset_color ] $( virtualenv_prompt)
10
20
\w
You can’t perform that action at this time.
0 commit comments