Compare commits

...

3 Commits

Author SHA1 Message Date
64fe2474da
Better gnu util handling
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2022-10-28 07:22:31 +01:00
0eb4663dab
Added bashrc
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2022-10-28 07:04:39 +01:00
a1d663d0d6
Added gnu sed
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
2022-10-28 07:03:26 +01:00
6 changed files with 14 additions and 3 deletions

2
home/.bashrc Normal file
View File

@ -0,0 +1,2 @@
alias date='gdate'
alias sed='gsed'

1
home/.bin/date Symbolic link
View File

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

1
home/.bin/readlink Symbolic link
View File

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

1
home/.bin/sed Symbolic link
View File

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

View File

@ -10,7 +10,9 @@ alias _find=`which find`
alias _top=`which top`
alias _ps="/bin/ps"
alias _dig=`which dig`
alias _readlink=`which readlink`
alias _readlink=`/usr/bin/readlink`
alias _sed=`/usr/bin/sed`
alias _date=`/bin/date`
alias _git=`which git`
if command -v $(brew --prefix)/bin/git &>/dev/null; then
alias _git=$(brew --prefix)/bin/git
@ -35,7 +37,11 @@ alias kctx='switch'
alias machine-info='macchina -t Boron --bar'
alias watch='watch '
alias tmp='cd $(mktemp -d)'
which greadlink &>/dev/null && alias readlink=`which greadlink`
# 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
lt() {
DEPTH=$(echo $1 | grep "^[0-9]*$")

View File

@ -34,7 +34,7 @@ BREW_TOOLS=(
kubectl kubectx kustomize node procs progress ripgrep rs/tap/curlie rust starship
tektoncd/tools/tektoncd-cli tldr tailscale yq hashicorp/tap/vault
tabby vale lastpass-cli jless macchina tz vmware-tanzu/carvel/kapp viddy
homeassistant-cli act dnsmasq gh kubebuilder golangci-lint
homeassistant-cli act dnsmasq gh kubebuilder golangci-lint gnu-sed
)
# Brew tools only available / needed on Mac
MAC_BREW_TOOLS=(