1
0
Fork 0
main
Ambrose Chua 2021-09-02 22:27:43 +08:00
parent 91ffff8e61
commit 171765aea3
2 changed files with 8 additions and 2 deletions

View File

@ -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() {

4
.zshrc
View File

@ -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