Racket - 如何在 bash 脚本中获取“先前执行的命令"? [英] Racket - how to get the “previous executed command” in bash script?

查看:32
本文介绍了Racket - 如何在 bash 脚本中获取“先前执行的命令"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何键盘可以将先前执行的命令"回显到屏幕上?类似于 Linux bash 中的向上箭头键...

Is there any keyboard which echoes to the screen the "previously executed command"? Something like the up-arrow key at Linux bash...

我如何做获取先前执行的命令"在 bash 脚本中?

推荐答案

加载 XREPL 和你'将获得 readline 样式的输入编辑,其中应包括使用向上箭头键加载前几行的能力.

Load XREPL and you'll get readline-style input editing, which should include the ability to load previous lines using the up-arrow key.

(require xrepl)

这篇关于Racket - 如何在 bash 脚本中获取“先前执行的命令"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆