From 193ab54a2263ab418667218b46032dd15fef76d4 Mon Sep 17 00:00:00 2001 From: Reinaldy Rafli Date: Sun, 6 Feb 2022 13:20:19 +0700 Subject: [PATCH] build ruby from source --- bash/.bashrc | 5 +++-- git/.gitconfig | 20 ++++++++++++++++++++ scripts/python.sh | 4 ++-- scripts/ruby.sh | 28 ++++++++++++++++++++++++++++ 4 files changed, 53 insertions(+), 4 deletions(-) create mode 100755 scripts/ruby.sh diff --git a/bash/.bashrc b/bash/.bashrc index 92a72f3..60e4ff0 100755 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -92,6 +92,7 @@ fi # some more ls aliases alias ls='exa' alias find='fd' +alias cat='bat' alias fucking='sudo' # Add an "alert" alias for long running commands. Use like so: @@ -119,7 +120,7 @@ if ! shopt -oq posix; then fi # fnm -PATH=$DOTFILES_PATH/bin:$ME/.local/kitty.app/bin/kitty:$PATH +PATH=$DOTFILES_PATH/bin:$ME/.local/bin:$ME/.local/kitty.app/bin/kitty:$PATH PATH=$ME/.poetry/bin:/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/swift/usr/bin:/opt/janet/bin:/opt/python/3.10.1/bin:/opt:/opt/zig:$PATH eval "`fnm env`" @@ -148,4 +149,4 @@ 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" -export DOTFILES_PATH=/home/reinaldy/.dotfiles + diff --git a/git/.gitconfig b/git/.gitconfig index 1b50cc6..085ee24 100755 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -19,3 +19,23 @@ [user] signingkey = 748A8EC5DB8653E8 + email = aldy505@tutanota.com + name = Reinaldy Rafli + +[core] + pager = delta + +[interactive] + diffFilter = delta --color-only + +[delta] + navigate = true # use n and N to move between diff sections + +[merge] + conflictstyle = diff3 + +[diff] + colorMoved = default + +[init] + defaultBranch = master diff --git a/scripts/python.sh b/scripts/python.sh index 55f6c18..3ed3168 100755 --- a/scripts/python.sh +++ b/scripts/python.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VERSION="3.10.0" +VERSION="3.10.1" function install () { cd ~ @@ -32,5 +32,5 @@ if [ "$1" == "install" ]; then # elif [ "$1" == "uninstall" ]; then # uninstall else - echo "Only install and uninstall" + echo "Only install" fi diff --git a/scripts/ruby.sh b/scripts/ruby.sh new file mode 100755 index 0000000..9edb023 --- /dev/null +++ b/scripts/ruby.sh @@ -0,0 +1,28 @@ +#!/usr/bin/env bash + +VERSION="3.1.0" +MINOR="3.1" + +function install () { + cd ~ + wget https://cache.ruby-lang.org/pub/ruby/${MINOR}/ruby-${VERSION}.tar.gz + tar -xvzf ruby-${VERSION}.tar.gz + cd ruby-${VERSION} + ./configure + make + sudo make install + cd ~ + rm ruby-${VERSION}.tar.gz + rm -rf ruby-${VERSION} + + printf "\n\n" + ruby --version +} + +if [ "$1" == "install" ]; then + install +# elif [ "$1" == "uninstall" ]; then +# uninstall +else + echo "Only install" +fi