From a01ae1cdb52f78f1d4ea20e9dbe69fb743becf21 Mon Sep 17 00:00:00 2001 From: Reinaldy Rafli Date: Thu, 5 Aug 2021 01:33:19 +0700 Subject: [PATCH] does anyone know how to sleep --- bash/.bashrc | 5 ++++- bash/.profile | 2 +- bin/node-setup | 3 --- bin/node-update | 12 ++++++++++++ scripts/rust.sh | 17 +++++++++++++++++ 5 files changed, 34 insertions(+), 5 deletions(-) delete mode 100644 bin/node-setup create mode 100755 bin/node-update create mode 100755 scripts/rust.sh diff --git a/bash/.bashrc b/bash/.bashrc index 7b47153..cb09a5b 100755 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -117,7 +117,7 @@ if ! shopt -oq posix; then fi # fnm -export PATH=$ME/.fnm:/opt/python/3.9.5/bin:$ME/.fly/bin:$PATH +export PATH=$ME/.fnm:/opt/python/3.9.5/bin:$ME/.fly/bin:$ME/go/bin:$ME/dotfiles/bin:$PATH eval "`fnm env`" export LIBGL_ALWAYS_INDIRECT=1 @@ -126,3 +126,6 @@ export LIBGL_ALWAYS_INDIRECT=1 export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0 sudo /etc/init.d/dbus start &> /dev/null . "$HOME/.cargo/env" + +export EDITOR="micro" +alias idea="eureka" diff --git a/bash/.profile b/bash/.profile index a62ee2c..5c6c3cf 100755 --- a/bash/.profile +++ b/bash/.profile @@ -27,7 +27,7 @@ if [ -d "$HOME/.local/bin" ] ; then fi export GOPATH=$HOME/go -export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin:/opt/julia/bin:/usr/local/bin/heroku +export PATH=/usr/local/go/bin:$GOPATH/bin:/opt/julia/bin:/usr/local/bin/heroku:$PATH # :/usr/local/pypy3.7-v7.3.5-linux64/bin export GPG_TTY=$(tty) . "$HOME/.cargo/env" diff --git a/bin/node-setup b/bin/node-setup deleted file mode 100644 index d37be39..0000000 --- a/bin/node-setup +++ /dev/null @@ -1,3 +0,0 @@ -#!bin/bash - -npm install -g yarn tldr pnpm npm-check-updates np commitizen add-gitignore \ No newline at end of file diff --git a/bin/node-update b/bin/node-update new file mode 100755 index 0000000..7fd8431 --- /dev/null +++ b/bin/node-update @@ -0,0 +1,12 @@ +#!/bin/bash + +fnm uninstall 14 +fnm uninstall 16 + +fnm install 14 +fnm use 14 +npm install -g yarn tldr pnpm npm-check-updates np commitizen add-gitignore + +fnm install 16 +fnm use 16 +npm install -g yarn tldr pnpm npm-check-updates np commitizen add-gitignore diff --git a/scripts/rust.sh b/scripts/rust.sh new file mode 100755 index 0000000..f2b43fd --- /dev/null +++ b/scripts/rust.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +function install () { + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh +} + +function uninstall () { + rustup self uninstall +} + +if [ "$1" == "install" ]; then + install +elif [ "$1" == "uninstall" ]; then + uninstall +else + echo "Only install and uninstall" +fi