diff --git a/goto.sh b/goto.sh index 2f02f73..93c9e90 100644 --- a/goto.sh +++ b/goto.sh @@ -1,3 +1,5 @@ +#!/usr/bin/env sh +# shellcheck disable=SC2039 # MIT License # # Copyright (c) 2018 Lazarus Lazaridis @@ -22,7 +24,7 @@ # Changes to the given alias directory # or executes a command based on the arguments. -function goto() +goto() { local target _goto_resolve_db @@ -61,12 +63,12 @@ function goto() return $? } -function _goto_resolve_db() +_goto_resolve_db() { GOTO_DB="$HOME/.goto" } -function _goto_usage() +_goto_usage() { cat <<\USAGE usage: goto [