From 171765aea3961e5c6ad3bb45b7cd43786bd6d5c3 Mon Sep 17 00:00:00 2001 From: Ambrose Chua Date: Thu, 2 Sep 2021 22:27:43 +0800 Subject: [PATCH] Add deno --- .config/yadm/bootstrap | 6 ++++++ .zshrc | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap index 9244ebf..c42c179 100755 --- a/.config/yadm/bootstrap +++ b/.config/yadm/bootstrap @@ -8,6 +8,7 @@ base=true nicetohave=true go=false rust=false +deno=false rootzsh=false desktopbase=false desktop=false @@ -23,6 +24,8 @@ while [ $# != 0 ]; do go) go=true;; norust) rust=false;; rust) rust=true;; + nodeno) deno=false;; + deno) deno=true;; norootzsh) rootzsh=false;; rootzsh) rootzsh=true;; nodesktopbase) desktopbase=false;; @@ -166,6 +169,9 @@ download_go() { download_rust() { wget --output-document - https://sh.rustup.rs | sh -s -- -y } +download_deno() { + wget --output-document - https://deno.land/x/install/install.sh | sh -s +} download_font_path="$HOME/.local/share/fonts" mkdir -p $download_font_path download_font_firacode() { diff --git a/.zshrc b/.zshrc index 93a0d57..2095464 100644 --- a/.zshrc +++ b/.zshrc @@ -61,7 +61,7 @@ precmd_functions+=( on_second_prompt ) # executables export PATH="$HOME/.local/bin:$HOME/.pwn/bin:$PATH" -if [[ -f "$HOME/.deno" ]]; then +if [[ -d "$HOME/.deno" ]]; then export DENO_INSTALL="$HOME/.deno" export PATH="$DENO_INSTALL/bin:$PATH" fi @@ -71,7 +71,7 @@ fi if [[ -f "$(which go 2>/dev/null)" ]]; then export PATH="$(go env GOPATH)/bin:$PATH" fi -if [[ -f "$HOME/.cargo" ]]; then +if [[ -d "$HOME/.cargo" ]]; then export PATH="$HOME/.cargo/bin:$PATH" fi