小编Nim*_*ima的帖子

如何通过编辑 bash 源来记录 bash 历史记录?

我正在使用 bash-4.3.30。我需要在一个文件中记录我所有的命令历史记录。我可以通过编辑bashrcorbash_profile来做到这一点,但我不会那样做。

我想玩 bash 源文件。我想我应该编辑 input.c。源代码是:

/* input.c -- functions to perform buffered input with synchronization. */

/* Copyright (C) 1992-2009 Free Software Foundation, Inc.

   This file is part of GNU Bash, the Bourne Again SHell.

   Bash is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version. …
Run Code Online (Sandbox Code Playgroud)

bash c

7
推荐指数
1
解决办法
851
查看次数

标签 统计

bash ×1

c ×1