TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: ALL_CAPS => sudo all_caps (Bash)

20 点作者 al_form2000超过 5 年前

8 条评论

nfriedly超过 5 年前
FYI, in bash, "sudo !!" re-runs the previous command with sudo.
评论 #21313557 未加载
评论 #21318720 未加载
评论 #21320587 未加载
philshem超过 5 年前
Reminds me of<p><a href="https:&#x2F;&#x2F;github.com&#x2F;nvbn&#x2F;thefuck" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nvbn&#x2F;thefuck</a>
hackbinary超过 5 年前
up arrow<p>ctrl-a (readline command for beginning of line)<p>type &quot;sudo&quot;<p>Also, ctrl-w is really useful. Heck, learning the readline editing keyboard in general is really useful.
评论 #21314070 未加载
评论 #21312803 未加载
rudiv超过 5 年前
Remember, all caps when you spell the man name.
timeattack超过 5 年前
Most often case is when you forget to type sudo before command. This implementation propose to re-type executable name in all-caps (or type it in all-caps beforehand).<p>More efficient approach is to use keybinding like Ctrl+T to prepend sudo to the current command (or to the previous command if current is empty).
评论 #21314311 未加载
评论 #21312691 未加载
sonofgod超过 5 年前
This is hideous. Congratulations! :D
gnulinux超过 5 年前
Isn&#x27;t typing &#x27;sudo yum&#x27; faster than &#x27;YUM&#x27;?
评论 #21314430 未加载
taejo超过 5 年前
Did some kind of automoderation break the title by changing ALL_CAPS to All_caps?
评论 #21314339 未加载