Use /usr/bin/env for bash and zsh files

This commit is contained in:
Anthony Rose 2022-09-18 21:20:44 +01:00
parent 1033f4b8ed
commit 6f7c54d8f7
4 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
if [ -r "$HOME/.profile" ] if [ -r "$HOME/.profile" ]
then then
. "$HOME/.profile" . "$HOME/.profile"

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
if [ -r "$HOME/.shrc" ] if [ -r "$HOME/.shrc" ]
then then
. "$HOME/.shrc" . "$HOME/.shrc"

View file

@ -1,4 +1,4 @@
#!/bin/zsh #!/usr/bin/env zsh
if [ -r "$HOME/.profile" ] if [ -r "$HOME/.profile" ]
then then
emulate sh -c '. "$HOME/.profile"' emulate sh -c '. "$HOME/.profile"'

View file

@ -1,4 +1,4 @@
#!/bin/zsh #!/usr/bin/env zsh
if [ -r "$HOME/.shrc" ] if [ -r "$HOME/.shrc" ]
then then
emulate sh -c '. "$HOME/.shrc"' emulate sh -c '. "$HOME/.shrc"'