| 
22 | 22 | Протестировано в `RHEL 8.9`.  | 
23 | 23 | 
 
  | 
24 | 24 | ```bash  | 
25 |  | -# last version and documentation: https://github.com/rin-nas/postgresql-patterns-library/tree/master/psqlrc  | 
 | 25 | +# Last version and documentation: https://github.com/rin-nas/postgresql-patterns-library/tree/master/psqlrc  | 
26 | 26 | 
 
  | 
27 |  | -# the history list is appended to the file named by the value of the HISTFILE variable when the shell exits, rather than overwriting the file  | 
 | 27 | +# The history list is appended to the file named by the value of the HISTFILE variable when the shell exits, rather than overwriting the file  | 
28 | 28 | shopt -s histappend  | 
29 | 29 | 
 
  | 
30 |  | -PROMPT_COMMAND=__prompt_command # Function to generate PS1 after CMDs  | 
 | 30 | +PROMPT_COMMAND=__prompt_command # function to generate PS1 after CMDs  | 
31 | 31 | 
 
  | 
32 | 32 | __prompt_command() {  | 
33 |  | - local EXIT="$?" # This needs to be first  | 
 | 33 | + local EXIT="$?" # this needs to be first  | 
34 | 34 | 
 
  | 
35 |  | - # append the new history lines to the history file  | 
 | 35 | + # Append the new history lines to the history file  | 
36 | 36 |  history -a  | 
37 | 37 | 
 
  | 
38 | 38 |  # https://robotmoon.com/bash-prompt-generator/  | 
 | 
0 commit comments