Changed location of symlinked gnu tools

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2023-01-04 23:38:03 +00:00
parent 08c0c58227
commit 2a59d2b677
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
4 changed files with 4 additions and 7 deletions

View File

@ -1 +0,0 @@
/opt/homebrew/bin//gdate

View File

@ -1 +0,0 @@
/opt/homebrew/bin//greadlink

View File

@ -1 +0,0 @@
/opt/homebrew/bin//gsed

View File

@ -40,10 +40,10 @@ alias watch='watch '
alias tmp='cd $(mktemp -d)'
# Ensure GNU version of tools are used by default (symlink so they are picked up in scripts also)
which greadlink &>/dev/null && ln -sfn `which greadlink` ~/.bin/readlink
which gsed &>/dev/null && ln -sfn `which gsed` ~/.bin/sed
which gdate &>/dev/null && ln -sfn `which gdate` ~/.bin/date
which gbase64 &>/dev/null && ln -sfn `which gbase64` ~/.bin/base64
which greadlink &>/dev/null && ln -sfn `which greadlink` /usr/local/bin/readlink
which gsed &>/dev/null && ln -sfn `which gsed` /usr/local/bin/sed
which gdate &>/dev/null && ln -sfn `which gdate` /usr/local/bin/date
which gbase64 &>/dev/null && ln -sfn `which gbase64` /usr/local/bin/base64
lt() {
DEPTH=$(echo $1 | grep "^[0-9]*$")