-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc.example
More file actions
22 lines (19 loc) · 847 Bytes
/
.bashrc.example
File metadata and controls
22 lines (19 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# This file contains examples of customizations you can add to `.bashrc`.
# Anything you add to the local `.bashrc` file will automatically be sourced
# when you run `docker compose exec -it sindri-rust bash` to enter the container.
# Create a shortcut for cargo-nextest
alias nextest='~/.cargo/bin/cargo-nextest nextest run'
#
# Bash History Improvements
#
# Store the history file in the local working directory.
export HISTFILE=/workspace/.bash_history
# Ignore duplicate history entries.
export HISTCONTROL=ignoredups:erasedup
# Store a lot of history commands in memory and on disk, respectively.
export HISTSIZE=100000
export HISTFILESIZE=1000000
# Append to history instead of overwriting it.
shopt -s histappend
# Save and reload history after every command.
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"