From 51f8c88eba11b1f05e2286332c9e75ab5feae8c8 Mon Sep 17 00:00:00 2001 From: Lazarus Lazaridis Date: Mon, 12 Mar 2018 06:44:29 +0200 Subject: [PATCH] [MINOR] Fix indentation and comments --- goto.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/goto.bash b/goto.bash index 19d1ba5..a3a28e5 100644 --- a/goto.bash +++ b/goto.bash @@ -109,6 +109,7 @@ function _goto_list_aliases() fi } +# Lists duplicate directory aliases function _goto_find_duplicate() { local duplicates= @@ -240,10 +241,11 @@ function _goto_warning() (>&2 echo -e "goto warning: $1") } +# Displays entries with aliases starting as the given one. function _goto_print_similar() { local similar - + similar=$(sed -n "/^$1[^ ]* .*/p" "$GOTO_DB" 2>/dev/null) if [ -n "$similar" ]; then (>&2 echo "Did you mean:")