From 7a1cf17db84dd93c22c2135694f1ab03378bf3de Mon Sep 17 00:00:00 2001 From: Reid 'arrdem' McKenzie Date: Wed, 17 Aug 2022 16:46:24 -0600 Subject: [PATCH] Don't hard-code the zsh path --- _goto_file | 2 +- _sed | 2 +- goto | 2 +- goto.plugin.zsh | 2 +- label | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/_goto_file b/_goto_file index 7b01368..1c721ed 100755 --- a/_goto_file +++ b/_goto_file @@ -1,2 +1,2 @@ -#!/usr/bin/zsh +#!/usr/bin/env zsh echo "${GOTO_FILE:-${HOME}/.labels.tsv}" diff --git a/_sed b/_sed index 0b4da1f..2cffccc 100755 --- a/_sed +++ b/_sed @@ -1,4 +1,4 @@ -#!/usr/bin/zsh +#!/usr/bin/env zsh # MacOS support - prefer GNU sed eg. from Homebrew to 'sed' if command -v gsed &>/dev/null; then gsed "$@" diff --git a/goto b/goto index af1f9fc..ca4b08f 100755 --- a/goto +++ b/goto @@ -1,4 +1,4 @@ -#!/usr/bin/zsh +#!/usr/bin/env zsh : "${1:=--help}" diff --git a/goto.plugin.zsh b/goto.plugin.zsh index 7c455ba..ead7803 100644 --- a/goto.plugin.zsh +++ b/goto.plugin.zsh @@ -1,4 +1,4 @@ -#!/usr/bin/zsh +#!/usr/bin/env zsh # this is a stub, commands are elsewhere ROOT="$(realpath $(dirname $0))" diff --git a/label b/label index e4e2a23..214139c 100755 --- a/label +++ b/label @@ -1,4 +1,4 @@ -#!/usr/bin/zsh +#!/usr/bin/env zsh : "${1:=--help}"