Difference between revisions of "PROMPT COMMAND"
Jump to navigation
Jump to search
(Created page with " export PROMPT_COMMAND='history -a' * {{history}}") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | |||
+ | |||
+ | Save every executed command to: <code>[[~/.bash_history]]</code> | ||
export PROMPT_COMMAND='[[history -a]]' | export PROMPT_COMMAND='[[history -a]]' | ||
+ | == See also == | ||
+ | * {{history}} | ||
+ | * {{Bash}} | ||
− | + | [[Category:Bash]] |
Latest revision as of 14:32, 25 January 2024
Save every executed command to: ~/.bash_history
export PROMPT_COMMAND='history -a'
See also[edit]
- Bash history:
history[ -a | -c | -r ]
,history --help
,~/.bash_history
,HISTFILE, HISTSIZE, HISTTIMEFORMAT, HSTR
Bash [ -c ]
,alias
,&&
, Bash history, Autocompletion,set
,unset
,export
,.bash_aliases, .bashrc and .bash profile
,PS1
,echo
,brace expansion
, Function,shopt
,trap
,set -e
,source
,PATH
,complete
,disown
,.hushlogin
,.bashrc
,builtin
,eval
,set
,$PATH
,$HOME
,TZ
,.profile
,-e, -i
,Builtin (Bash)
,mapfile
,~
, return (Bash), for, until,declare, dirname, basename, functions.sh
, Bash arithmetic expansion,shift, bash --rcfile, readonly, $1, $@
Advertising: