From 6f1a65c9b3141b8486b25d57a4322f191fcc32c2 Mon Sep 17 00:00:00 2001 From: Reinaldy Rafli Date: Sat, 11 Dec 2021 14:51:17 +0700 Subject: [PATCH] more updatess --- bash/.bashrc | 2 ++ bin/degit | 2 +- scripts/git.sh | 2 +- scripts/go.sh | 7 +++++-- scripts/janet.sh | 32 ++++++++++++++++++++++++-------- scripts/julia.sh | 6 ++++-- scripts/python.sh | 5 ++++- 7 files changed, 41 insertions(+), 15 deletions(-) mode change 100644 => 100755 scripts/janet.sh diff --git a/bash/.bashrc b/bash/.bashrc index 035b736..cdf2fad 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -90,6 +90,8 @@ fi #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' # some more ls aliases +alias cat=bat +alias ls=exa alias ll='ls -alF' alias la='ls -A' alias l='ls -CF' diff --git a/bin/degit b/bin/degit index 51ede23..e03ffe3 100755 --- a/bin/degit +++ b/bin/degit @@ -27,4 +27,4 @@ else end run(`git clone --depth=1 $repo $directory`) -run(`rm -rf $directory/.git`) \ No newline at end of file +run(`rm -rf $directory/.git`) diff --git a/scripts/git.sh b/scripts/git.sh index a7e2799..56d4f92 100755 --- a/scripts/git.sh +++ b/scripts/git.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VERSION="2.34.0" +VERSION="2.34.1" function install () { cd ~ diff --git a/scripts/go.sh b/scripts/go.sh index 2a54707..61765ac 100755 --- a/scripts/go.sh +++ b/scripts/go.sh @@ -1,14 +1,17 @@ #!/usr/bin/env bash -VERSION="1.17.3" +VERSION="1.17.5" function install () { echo "installing go" cd ~ - wget https://golang.org/dl/go${VERSION}.linux-amd64.tar.gz + wget https://go.dev/dl/go${VERSION}.linux-amd64.tar.gz + echo "bd78114b0d441b029c8fe0341f4910370925a4d270a6a590668840675b0c653e" > go${VERSION}.linux-amd64.tar.gz.sha256 + sha256sum -c go${VERSION}.linux-amd64.tar.gz.sha256 sudo rm -rf /usr/local/go sudo tar -C /usr/local -xzf go${VERSION}.linux-amd64.tar.gz sudo rm go${VERSION}.linux-amd64.tar.gz + sudo rm go${VERSION}.linux-amd64.tar.gz.sha256 sudo rm -rf ${HOME}/.config/go sudo mkdir ${HOME}/.config/go sudo ln -s ${DOTFILES_PATH}/go/env ${HOME}/.config/go/env diff --git a/scripts/janet.sh b/scripts/janet.sh old mode 100644 new mode 100755 index e550ede..a655d10 --- a/scripts/janet.sh +++ b/scripts/janet.sh @@ -1,21 +1,37 @@ #!/usr/bin/env bash -VERSION="1.18.1" +VERSION="1.19.2" function install () { cd ~ - wget https://github.com/janet-lang/janet/releases/download/v${VERSION}/janet-v${VERSION}-linux-x64.tar.gz - tar zxvf janet-v${VERSION}-linux-x64.tar.gz - sudo mv janet-v${VERSION}-linux janet - sudo mv janet /opt/janet - sudo rm janet-v${VERSION}-linux-x64.tar.gz + wget https://github.com/janet-lang/janet/archive/refs/tags/v${VERSION}.tar.gz + tar zxvf v${VERSION}.tar.gz + cd janet-${VERSION} + sudo make + sudo make test + sudo mv -v build bin + cd ~ + sudo mv -v janet-${VERSION} /opt/janet + sudo rm v${VERSION}.tar.gz + sudo rm -rf janet-${VERSION} + sudo ln -s /opt/janet/bin/janet /usr/local/bin/janet git clone --depth=1 https://github.com/janet-lang/jpm.git cd jpm - sudo janet bootstrap.janet + sudo /opt/janet/bin/janet bootstrap.janet + + cd ~ + sudo rm -rf jpm printf "\n\n" - janet --version + janet -v +} + +function uninstall () { + echo "uninstalling janet" + sudo rm -rf /opt/janet + sudo rm /usr/local/bin/jpm + sudo rm /usr/local/bin/janet } if [ "$1" == "install" ]; then diff --git a/scripts/julia.sh b/scripts/julia.sh index c9532e6..0792310 100755 --- a/scripts/julia.sh +++ b/scripts/julia.sh @@ -1,12 +1,14 @@ #!/usr/bin/env bash -MINOR="1.6" -VERSION="1.6.3" +MINOR="1.7" +VERSION="1.7.0" function install () { echo "installing julia" cd ~ wget https://julialang-s3.julialang.org/bin/linux/x64/${MINOR}/julia-${VERSION}-linux-x86_64.tar.gz + wget https://julialang-s3.julialang.org/bin/checksums/julia-${VERSION}.sha256 + sha256sum -c julia-${VERSION} tar zxvf julia-${VERSION}-linux-x86_64.tar.gz sudo mv julia-${VERSION} julia sudo mv julia /opt/julia diff --git a/scripts/python.sh b/scripts/python.sh index 55f6c18..7c22e26 100755 --- a/scripts/python.sh +++ b/scripts/python.sh @@ -1,10 +1,12 @@ #!/usr/bin/env bash -VERSION="3.10.0" +VERSION="3.10.1" function install () { cd ~ curl -O https://www.python.org/ftp/python/${VERSION}/Python-${VERSION}.tgz + echo "91822157a97da16203877400c810d93e" > Python-${VERSION}.tgz.md5 + md5sum -c Python-${VERSION}.tgz.md5 sudo tar -xvzf Python-${VERSION}.tgz cd Python-${VERSION} ./configure \ @@ -20,6 +22,7 @@ function install () { sudo /opt/python/${VERSION}/bin/python3 get-pip.py sudo rm Python-${VERSION}.tgz + sudo rm Python-${VERSION}.tgz.md5 sudo rm -rf Python-${VERSION} sudo rm get-pip.py