MacOS系统使用系列-2.Mac命令行提升效率工具thefuck
来源:互联网 发布:c语言告白 编辑:程序博客网 时间:2024/06/09 23:10
在mac的命令行操作时,是不是经常忘记一些命令,或者记错了命令,这个时候是不是想说一句fuck,好的,现在就介绍这款能让你爽翻天,还能提高效率的工具。首先感谢 @liamosaur tweet 大神开发了该工具 ,也要感谢我的同事介绍给我这款工具,我也是今天朋友介绍给我的,爽翻天,so,我不能自己一个人爽,要爽大家一起爽!
1.thefuck工具简介
thefuck是github上一款针对linux和Mac os系统的开源的工具软件,当你在命令行里敲错了命令报错时,只需要输入fuck,thefuck工具便会智能提供相对应的正确命令候选项,你可enter直接执行或者Ctrl+C退出。
是不是很爽。下面是传送门:GitHub地址 https://github.com/nvbn/thefuck
2.工具安装
max os中安装了brew命令,直接执行:brew install the fuck
示例:
$ brew install thefuck
Updating Homebrew...
==>Downloadinghttps://homebrew.bintray.com/bottles/thefuck-3.24.sierra.bottle.tar.gz
curl: (35) Server aborted the SSL handshake
Error:Failed to download resource "thefuck"
Download failed:https://homebrew.bintray.com/bottles/thefuck-3.24.sierra.bottle.tar.gz
Warning:Bottle installation failed: building from source.
==>Downloadinghttps://files.pythonhosted.org/packages/e6/1b/d05fc958700634bcb6b82fefb2f701587fa6ad08cb2f7e02e46a0f00a329/thefuck-3.24.tar.gz
curl: (35) Server aborted the SSL handshake
Error:Failed to download resource "thefuck"
Download failed:https://files.pythonhosted.org/packages/e6/1b/d05fc958700634bcb6b82fefb2f701587fa6ad08cb2f7e02e46a0f00a329/thefuck-3.24.tar.gz
chenwenxindeMacBook-Pro:MLP chenwenxin$ brew install thefuck
==>Downloadinghttps://homebrew.bintray.com/bottles/thefuck-3.24.sierra.bottle.tar.gz
######################################################################## 100.0%
==>Pouring thefuck-3.24.sierra.bottle.tar.gz
==>Caveats
Add the following to your .bash_profile, .bashrc or .zshrc:
eval "$(thefuck --alias)"
For other shells, checkhttps://github.com/nvbn/thefuck/wiki/Shell-aliases
==>Summary
�� /usr/local/Cellar/thefuck/3.24: 708 files, 6.3MB
另外:
如果没有homebrew工具,命令行执行该命令进行安装:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
3.工具示例
示例1:进入python命令行
chenwenxindeMacBook-Pro:MLP chenwenxin$ pytno
-bash: pytno: command not found
chenwenxindeMacBook-Pro:MLP chenwenxin$ fuck
python[enter/↑/↓/ctrl+c]
Python 2.7.10 (default, Feb 7 2017, 00:08:15)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
示例2:启动mysql服务
chenwenxindeMacBook-Pro:MLP chenwenxin$ myslq.server start
-bash: myslq.server: command not found
chenwenxindeMacBook-Pro:MLP chenwenxin$ fuck
mysql.server start[enter/↑/↓/ctrl+c]
Starting MySQL
SUCCESS!
chenwenxindeMacBook-Pro:MLP chenwenxin$ mysql.server stop
Shutting down MySQL
. SUCCESS!
是不是爽翻天!
是不是爽翻天!
是不是爽翻天!
阅读全文
0 0
- MacOS系统使用系列-2.Mac命令行提升效率工具thefuck
- MacOS系统使用系列-3.Mac命令行命令学习
- 使用命令行工具提升cocos2d-x开发效率 之CocosBuilder篇
- 使用命令行工具提升cocos2d-x开发效率(一)之TexturePacker篇
- 使用命令行工具提升cocos2d-x开发效率 之TexturePacker篇
- Macos svn命令行工具
- 使用工具来提升Android开发效率
- 使用工具来提升Android开发效率
- 使用工具来提升Android开发效率
- MacOS-命令行修改Mac地址
- mac 系统 命令行的使用
- 效率提升工具
- iOS效率提升工具
- 效率提升工具汇总
- 效率提升工具
- macOS -- Mac系统如何通过终端使用mysql
- 一些命令行效率工具
- MacOS系统使用系列-1.终端中自定义快捷命令
- 中断服务函数能不能带形参和返回值
- 筛法_算法进阶
- 【网络编程】UDP数据报格式
- css的那些事儿--background的多张背景的实现
- 软件工程之快速原型模型
- MacOS系统使用系列-2.Mac命令行提升效率工具thefuck
- C#的基本常识
- MVC框架
- opencv使用findcontours报错解决其他方案
- VSCode打开已有vuejs项目
- 起点
- 对JVM分派概念的理解
- 论文DenseNet(Densely Connected Convolutional Networks)解读
- 浅析前端页面渲染机制