Skip to content

Commit acd39e2

Browse files
deno path
1 parent a24624f commit acd39e2

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

tools/brew_init

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
brewPath="/usr/local/bin/brew"
12

2-
brewPath="/opt/homebrew/bin"
3+
if [ "$(uname)" = "Linux" ]; then
4+
brewPath="/home/linuxbrew/.linuxbrew/bin"
5+
elif [ "$(uname)" = "Darwin" ]; then
6+
brewPath="/opt/homebrew/bin"
7+
fi
38

49
if [ ! -x "$(command -v brew)" ]; then
510
if [ -d "${brewPath}" ]; then

tools/deno.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ whoami() {
1515
return
1616
}
1717

18-
install() {
19-
brew install deno
18+
install() {
19+
curl -fsSL https://deno.land/x/install/install.sh | sh
2020
}
2121

2222
"$@"

tools/deno_init

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# TODO: fix
21

3-
denoPath=`which deno`
2+
DENO_PATH="${HOME}/.deno/bin/"
43

5-
if [ -f ${denoPath} ]; then
4+
if [ -d ${DENO_PATH} ]; then
5+
pathappend "${DENO_PATH}"
66
# TODO: fix
77
# deno completions zsh > ~/.zsh/_deno
88
fi

0 commit comments

Comments
 (0)