浏览代码

Thefuck: homebrew install documentation and thefuck repo link (#5940)

* Thefuck: homebrew install documentation and thefuck repo link
* thefuck: reformat error message
Henry Bley-Vroman 6 年之前
父节点
当前提交
48e2c828ef
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      plugins/thefuck/thefuck.plugin.zsh

+ 3 - 2
plugins/thefuck/thefuck.plugin.zsh

@@ -1,6 +1,7 @@
 if [[ -z $commands[thefuck] ]]; then
-    echo 'thefuck is not installed, you should "pip install thefuck" first'
-    return -1
+    echo 'thefuck is not installed, you should "pip install thefuck" or "brew install thefuck" first.'
+    echo 'See https://github.com/nvbn/thefuck#installation'
+    return 1
 fi
 
 # Register alias