Script for Ruby with openssl3 install

This commit is contained in:
Andrew Tomaka 2022-11-04 21:06:26 -04:00
parent 074e0891ac
commit ceaa139ea0
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
3 changed files with 23 additions and 4 deletions

View file

@ -16,7 +16,7 @@ install_homebrew() {
install_shared_applications() { install_shared_applications() {
brew install direnv fzf git stow the_silver_searcher tmux \ brew install direnv fzf git stow the_silver_searcher tmux \
vim zsh rbenv ruby-build tfenv nodenv node-build tig libpq gnupg llvm \ vim zsh rbenv ruby-build tfenv nodenv node-build tig libpq gnupg llvm \
awscli cmake jq watch gh nvim awscli cmake jq watch gh nvim openssl@1.1 openssl@3 readline libyaml gmp
install_alacritty_terminfo install_alacritty_terminfo
install_rust install_rust
@ -87,7 +87,7 @@ install_linux() {
packages="build-essential procps curl file git cmake pkg-config\ packages="build-essential procps curl file git cmake pkg-config\
libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev\ libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev\
libxkbcommon-dev python3" libxkbcommon-dev python3 libssl-dev xclip"
dpkg -s $packages >/dev/null 2>&1 \ dpkg -s $packages >/dev/null 2>&1 \
|| sudo apt-get install --assume-yes $packages || sudo apt-get install --assume-yes $packages

16
ruby_with_openssl3.sh Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env bash
if [ $# -ne a]; then
echo Specify Ruby version
exit
fi
major=$(echo $1 | cut -d. -f1)
minor=$(echo $1 | cut -d. -f2)
patch=$(echo $1 | cut -d. -f3)
PATH="/home/linuxbrew/.linuxbrew/opt/openssl@3/bin:$PATH" \
LDFLAGS="-L/home/linuxbrew/.linuxbrew/opt/openssl@3/lib" \
CPPFLAGS="-I/home/linuxbrew/.linuxbrew/opt/openssl@3/include" \
PKG_CONFIG_PATH="/home/linuxbrew/.linuxbrew/opt/openssl@3/lib/pkgconfig" \
rbenv install $1

View file

@ -1,7 +1,7 @@
bind-key r source-file ~/.config/tmux/tmux.conf \; display-message " ✱ tmux.conf is reloaded" bind-key r source-file ~/.config/tmux/tmux.conf \; display-message " ✱ tmux.conf is reloaded"
set -g default-terminal "xterm-256color" set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",alacritty:RGB" set -sa terminal-overrides ",xterm-256color:RGB"
# for muxception # for muxception
bind-key b send-prefix bind-key b send-prefix
@ -37,3 +37,6 @@ bind h select-pane -L # left pane
bind j select-pane -D # bottom pane bind j select-pane -D # bottom pane
bind k select-pane -U # top pane bind k select-pane -U # top pane
bind l select-pane -R # right pane bind l select-pane -R # right pane
# neovim
set-option -g focus-events on