Last active
February 14, 2025 13:43
-
-
Save J1nH4ng/a8ce792bcb97cd9b0254b8c319998cbe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Description: Delete newly five shell history. | |
# Author: J1nH4ng<[email protected]> | |
# Date: 2025-02-14 | |
# Version: V1.0.0.20250214_public | |
# 主要用于 Xshell 配置 | |
for i in {1..5}; do history -d $(history 1 | awk '{print $1}'); done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment