浏览代码

Copy batdiff function from git hub page

Does not work ...

[GitHub Bat page](https://github.com/sharkdp/bat)
DricomDragon 4 年之前
父节点
当前提交
3145e061e7
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Install/Templates/config/fish/functions/batdiff.fish

+ 3 - 0
Install/Templates/config/fish/functions/batdiff.fish

@@ -0,0 +1,3 @@
+function batdiff --description 'Git diff powered by Bat Cat'
+	git diff --name-only --diff-filter=d | xargs bat --diff
+end