mirror of https://github.com/aldy505/dotfiles.git
build ruby from source
This commit is contained in:
parent
862f3f2a49
commit
193ab54a22
|
@ -92,6 +92,7 @@ fi
|
||||||
# some more ls aliases
|
# some more ls aliases
|
||||||
alias ls='exa'
|
alias ls='exa'
|
||||||
alias find='fd'
|
alias find='fd'
|
||||||
|
alias cat='bat'
|
||||||
alias fucking='sudo'
|
alias fucking='sudo'
|
||||||
|
|
||||||
# Add an "alert" alias for long running commands. Use like so:
|
# Add an "alert" alias for long running commands. Use like so:
|
||||||
|
@ -119,7 +120,7 @@ if ! shopt -oq posix; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# fnm
|
# 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
|
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
|
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`"
|
eval "`fnm env`"
|
||||||
|
@ -148,4 +149,4 @@ eval "$(starship init bash)"
|
||||||
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
|
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
|
||||||
export SDKMAN_DIR="$HOME/.sdkman"
|
export SDKMAN_DIR="$HOME/.sdkman"
|
||||||
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
|
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
|
||||||
export DOTFILES_PATH=/home/reinaldy/.dotfiles
|
|
||||||
|
|
|
@ -19,3 +19,23 @@
|
||||||
|
|
||||||
[user]
|
[user]
|
||||||
signingkey = 748A8EC5DB8653E8
|
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
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
VERSION="3.10.0"
|
VERSION="3.10.1"
|
||||||
|
|
||||||
function install () {
|
function install () {
|
||||||
cd ~
|
cd ~
|
||||||
|
@ -32,5 +32,5 @@ if [ "$1" == "install" ]; then
|
||||||
# elif [ "$1" == "uninstall" ]; then
|
# elif [ "$1" == "uninstall" ]; then
|
||||||
# uninstall
|
# uninstall
|
||||||
else
|
else
|
||||||
echo "Only install and uninstall"
|
echo "Only install"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue