lots and lots of things

This commit is contained in:
Reinaldy Rafli 2021-11-24 21:14:39 +07:00
parent 8524da2caa
commit e106eda01b
No known key found for this signature in database
GPG Key ID: CFDB9400255D8CB6
12 changed files with 96 additions and 52 deletions

View File

@ -118,7 +118,9 @@ if ! shopt -oq posix; then
fi fi
# fnm # fnm
export PATH=$ME/.fnm:/opt/julia/bin:/opt/python/3.9.6/bin:/usr/lib/jvm/java-11-openjdk-amd64/bin:/opt/bin:$ME/.fly/bin:$ME/go/bin:$DOTFILES_PATH/bin:$PATH PATH=$DOTFILES_PATH/bin:$ME/.local/kitty.app/bin/kitty:$PATH
PATH=/usr/lib/jvm/java-11-openjdk-amd64/bin:/opt/bin:$ME/.fly/bin:$ME/go/bin:$PATH
export PATH=$ME/.fnm:/opt/julia/bin:/opt/janet/bin:/opt/python/3.9.6/bin:/opt:/opt/zig:$PATH
eval "`fnm env`" eval "`fnm env`"
export LIBGL_ALWAYS_INDIRECT=1 export LIBGL_ALWAYS_INDIRECT=1
@ -142,3 +144,10 @@ export COLORTERM="truecolor"
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
export DOTFILES_PATH=/home/reinaldy/.dotfiles export DOTFILES_PATH=/home/reinaldy/.dotfiles
eval "$(starship init bash)" eval "$(starship init bash)"
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
BUN_INSTALL="/home/reinaldy/.bun"
PATH="$BUN_INSTALL/bin:$PATH"

View File

@ -1,3 +1,9 @@
#!/usr/bin/env bash #!/usr/bin/env bash
git log --color --decorate --all --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit git log \
--color \
--decorate \
--all \
--graph \
--pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' \
--abbrev-commit

View File

@ -1,12 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
fnm uninstall 14
fnm uninstall 16 fnm uninstall 16
fnm install 14
fnm use 14
npm install -g yarn tldr pnpm npm-check-updates np node-gyp commitizen
fnm install 16 fnm install 16
fnm use 16 fnm use 16
npm install -g yarn tldr pnpm npm-check-updates np node-gyp commitizen npm install -g pnpm npm-check-updates node-gyp commitizen

View File

@ -1,16 +1,19 @@
[user] [includeIf "gitdir:~/repository/kawanlama/"]
name = Reinaldy Rafli path = ~/repository/kawanlama/.gitconfig
email = aldy505@tutanota.com [includeIf "gitdir:~/repository/personal/"]
signingkey = CFDB9400255D8CB6 path = ~/repository/.gitconfig
[core] [includeIf "gitdir:~/repository/oss/"]
editor = code path = ~/repository/.gitconfig
[color] [includeIf "gitdir:~/repository/teknologi-umum/"]
status = auto path = ~/repository/.gitconfig
branch = auto [includeIf "gitdir:~/repository/databases/"]
interactive = auto path = ~/repository/.gitconfig
[gpg] [includeIf "gitdir:~/repository/arcet/"]
program = gpg path = ~/repository/.gitconfig
[init] [includeIf "gitdir:~/repository/tridots-lms/"]
defaultBranch = master path = ~/repository/.gitconfig
[commit] [includeIf "gitdir:~/repository/reinaldyrfl/"]
gpgsign = false path = ~/repository/.gitconfig
[includeIf "gitdir:~/.dotfiles/"]
path = ~/repository/.gitconfig

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
VERSION="2.32.0" VERSION="2.34.0"
function install () { function install () {
cd ~ cd ~
@ -16,6 +16,10 @@ function install () {
git --version git --version
} }
function uninstall () {
sudo rm /usr/local/bin/git
}
function setup () { function setup () {
echo "create a ssh key" echo "create a ssh key"
echo "gimme your email: " echo "gimme your email: "
@ -43,4 +47,4 @@ elif [ "$1" == "uninstall" ] || [ "$1" == "remove" ]; then
uninstall uninstall
else else
echo "please specify args with install or uninstall" echo "please specify args with install or uninstall"
fi fi

View File

@ -1,17 +1,17 @@
#!/usr/bin/env bash #!/usr/bin/env bash
VERSION="1.17" VERSION="1.17.3"
function install () { function install () {
echo "installing go" echo "installing go"
cd ~ cd ~
wget https://golang.org/dl/go$VERSION.linux-amd64.tar.gz wget https://golang.org/dl/go${VERSION}.linux-amd64.tar.gz
sudo rm -rf /usr/local/go sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf go$VERSION.linux-amd64.tar.gz 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
sudo rm -rf $HOME/.config/go sudo rm -rf ${HOME}/.config/go
sudo mkdir $HOME/.config/go sudo mkdir ${HOME}/.config/go
sudo ln -s ${DOTFILES_PATH}/go/env $HOME/.config/go/env sudo ln -s ${DOTFILES_PATH}/go/env ${HOME}/.config/go/env
printf "\n\n" printf "\n\n"
go version go version
} }

27
scripts/janet.sh Normal file
View File

@ -0,0 +1,27 @@
#!/usr/bin/env bash
VERSION="1.18.1"
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
git clone --depth=1 https://github.com/janet-lang/jpm.git
cd jpm
sudo janet bootstrap.janet
printf "\n\n"
janet --version
}
if [ "$1" == "install" ]; then
install
elif [ "$1" == "uninstall" ] || [ "$1" == "remove" ]; then
uninstall
else
echo "please specify args with install or uninstall"
fi

View File

@ -8,7 +8,7 @@ function install () {
wget https://download.java.net/java/GA/jdk${VERSION}/d4a915d82b4c4fbb9bde534da945d746/7/GPL/openjdk-${VERSION}_linux-x64_bin.tar.gz.sha256 wget https://download.java.net/java/GA/jdk${VERSION}/d4a915d82b4c4fbb9bde534da945d746/7/GPL/openjdk-${VERSION}_linux-x64_bin.tar.gz.sha256
sha256sum openjdk-${VERSION}_linux-x64_bin.tar.gz sha256sum openjdk-${VERSION}_linux-x64_bin.tar.gz
sudo tar xvf openjdk-${VERSION}_linux-x64_bin.tar.gz sudo tar xvf openjdk-${VERSION}_linux-x64_bin.tar.gz
sudo mv jdk-$VERSION /opt/java sudo mv jdk-${VERSION} /opt/java
sudo rm openjdk-${VERSION}_linux-x64_bin.tar.gz sudo rm openjdk-${VERSION}_linux-x64_bin.tar.gz
sudo rm openjdk-${VERSION}_linux-x64_bin.tar.gz.sha256 sudo rm openjdk-${VERSION}_linux-x64_bin.tar.gz.sha256
} }

View File

@ -1,16 +1,16 @@
#!/usr/bin/env bash #!/usr/bin/env bash
MINOR="1.6" MINOR="1.6"
VERSION="1.6.2" VERSION="1.6.3"
function install () { function install () {
echo "installing julia" echo "installing julia"
cd ~ 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/linux/x64/${MINOR}/julia-${VERSION}-linux-x86_64.tar.gz
tar zxvf julia-$VERSION-linux-x86_64.tar.gz tar zxvf julia-${VERSION}-linux-x86_64.tar.gz
sudo mv julia-$VERSION julia sudo mv julia-${VERSION} julia
sudo mv julia /opt/julia sudo mv julia /opt/julia
sudo rm julia-$VERSION-linux-x86_64.tar.gz sudo rm julia-${VERSION}-linux-x86_64.tar.gz
printf "\n\n" printf "\n\n"
julia --version julia --version
} }

View File

@ -4,14 +4,14 @@ VERSION="5.4.3"
function install () { function install () {
cd ~ cd ~
wget https://www.lua.org/ftp/lua-$VERSION.tar.gz wget https://www.lua.org/ftp/lua-${VERSION}.tar.gz
sudo tar zxf lua-$VERSION.tar.gz sudo tar zxf lua-${VERSION}.tar.gz
cd lua-$VERSION cd lua-${VERSION}
sudo make sudo make
sudo make install sudo make install
cd ~ cd ~
sudo rm -rf lua-$VERSION sudo rm -rf lua-${VERSION}
sudo rm lua-$VERSION.tar.gz sudo rm lua-${VERSION}.tar.gz
printf "\n" printf "\n"
lua -v lua -v
} }
@ -27,4 +27,4 @@ elif [ "$1" == "uninstall" ] || [ "$1" == "remove" ]; then
uninstall uninstall
else else
echo "please specify args with install or uninstall" echo "please specify args with install or uninstall"
fi fi

View File

@ -4,8 +4,8 @@ VERSION="v0.5.0"
function install () { function install () {
cd ~ cd ~
wget https://github.com/neovim/neovim/releases/download/$VERSION/nvim.appimage wget https://github.com/neovim/neovim/releases/download/${VERSION}/nvim.appimage
wget https://github.com/neovim/neovim/releases/download/$VERSION/nvim.appimage.sha256sum wget https://github.com/neovim/neovim/releases/download/${VERSION}/nvim.appimage.sha256sum
sha256sum nvim.appimage sha256sum nvim.appimage
sudo chmod u+x nvim.appimage sudo chmod u+x nvim.appimage
./nvim.appimage --appimage-extract ./nvim.appimage --appimage-extract

View File

@ -4,7 +4,7 @@ VERSION="3.9.6"
function install () { function install () {
cd ~ cd ~
curl -O https://www.python.org/ftp/python/$VERSION/Python-$VERSION.tgz curl -O https://www.python.org/ftp/python/${VERSION}/Python-${VERSION}.tgz
sudo tar -xvzf Python-${VERSION}.tgz sudo tar -xvzf Python-${VERSION}.tgz
cd Python-${VERSION} cd Python-${VERSION}
./configure \ ./configure \
@ -19,10 +19,10 @@ function install () {
curl -O https://bootstrap.pypa.io/get-pip.py curl -O https://bootstrap.pypa.io/get-pip.py
sudo /opt/python/${VERSION}/bin/python3 get-pip.py sudo /opt/python/${VERSION}/bin/python3 get-pip.py
sudo rm Python-$VERSION.tgz sudo rm Python-${VERSION}.tgz
sudo rm -rf Python-$VERSION sudo rm -rf Python-${VERSION}
sudo rm get-pip.py sudo rm get-pip.py
printf "\n\n" printf "\n\n"
python3 --version python3 --version
} }
@ -33,4 +33,4 @@ if [ "$1" == "install" ]; then
# uninstall # uninstall
else else
echo "Only install and uninstall" echo "Only install and uninstall"
fi fi