Skip to content

Commit 12d7faf

Browse files
committed
Update default history file size to 10,000 lines
1 parent 858159d commit 12d7faf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ stop Wed 07 Oct 2020 05:00:00 AM UTC
2424
Install one-liner: `source <(curl -s https://raw.githubusercontent.com/0xZDH/cmdw/master/install.sh)`
2525

2626
## History Size:
27-
If required, the user can modify the size of the maintained history file by setting CMDWSIZE as an environment variable (Default: 3,000):
27+
If required, the user can modify the size of the maintained history file by setting CMDWSIZE as an environment variable (Default: 10,000):
2828
* `export CMDWSIZE=1000`
2929

3030
For uses that require larger history files, it is best to include and set the CMDWSIZE variable in the terminals rc file prior to the sourcing of the cmdw tool. For example, add the following to your rc file above the cmdw source line to allow the history file length to grow up to 1,000,000 lines:

cmdw.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# History size:
1818
# If required, the user can modify the size of the
1919
# maintained history file by setting CMDWSIZE as an
20-
# environment variable (Default: 3,000):
20+
# environment variable (Default: 10,000):
2121
# export CMDWSIZE=1000
2222
#
2323
# Command referencing:
@@ -72,9 +72,9 @@ __cmdw_imported='defined'
7272

7373
# Generate a log file, similar to .bash_history, but with
7474
# timestamps. Allow the user to specify a custom CMDWSIZE
75-
# via exporting, or use a default value of 3,000 lines.
75+
# via exporting, or use a default value of 10,000 lines.
7676
__cmdw_history_file="$HOME/.cmdw_history"
77-
CMDWSIZE="${CMDWSIZE:-3000}"
77+
CMDWSIZE="${CMDWSIZE:-10000}"
7878

7979
# Ignore list for the cmdw wrapper to avoid logging and
8080
# performing actions on. The user can expand this list

0 commit comments

Comments
 (0)