From dd84276d425d67433edb3b0231f1a70ed89d33ac Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Sun, 29 Apr 2018 18:27:01 -0700 Subject: [PATCH] Auto-fix missing trailing newline --- goto.plugin.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/goto.plugin.zsh b/goto.plugin.zsh index 939fc95..576a7dd 100644 --- a/goto.plugin.zsh +++ b/goto.plugin.zsh @@ -12,6 +12,7 @@ function _goto_file { }; function _make_label { + sed -i '' -e '$a\' `_goto_file` # Fix potentially missing last newline printf '%s %s\n' "$1" $(echo "$2" | sed "s^$HOME^^g") >> `_goto_file` };