Add existing scripts

This commit is contained in:
chris committed 2026-09-29 15:24:09 -04:00
1 parent 2ab5a42c2b
commit 3c05d74104
31 files changed
+1138

No files matched your search

Executable
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# Inform the user of the output they can expect.
echo "common commands:"
# The following variables control how the command runs.
history_lines=1000 # The number of lines of history to search through
command_count=10 # The number of common commands to show
# Show the most commonly used commands
tail ~/.bash_history -n ${history_lines} \
| sort \
| uniq -c \
| sed 's/^ *//' \
| sort -n -r \
| head -n ${command_count}