File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change
1
+ brewPath="/usr/local/bin/brew"
1
2
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
3
8
4
9
if [ ! -x "$(command -v brew)" ]; then
5
10
if [ -d "${brewPath}" ]; then
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ whoami() {
15
15
return
16
16
}
17
17
18
- install () {
19
- brew install deno
18
+ install () {
19
+ curl -fsSL https:// deno.land/x/install/install.sh | sh
20
20
}
21
21
22
22
" $@ "
Original file line number Diff line number Diff line change 1
- # TODO: fix
2
1
3
- denoPath=`which deno`
2
+ DENO_PATH="${HOME}/. deno/bin/"
4
3
5
- if [ -f ${denoPath} ]; then
4
+ if [ -d ${DENO_PATH} ]; then
5
+ pathappend "${DENO_PATH}"
6
6
# TODO: fix
7
7
# deno completions zsh > ~/.zsh/_deno
8
8
fi
You can’t perform that action at this time.
0 commit comments