Skip to content

Instantly share code, notes, and snippets.

View mesmerze's full-sized avatar
🔥
on fire

Alex Chernov mesmerze

🔥
on fire
View GitHub Profile
@mesmerze
mesmerze / setup.sh
Last active January 16, 2025 15:59 — forked from jeanmartin/setup.sh
Testinator service template
#!/bin/zsh
if command -v rbenv >/dev/null 2>&1; then
export RUBY_VERSION=$(rbenv version-name)
export RBENV_INSTALLED=1
else
export RUBY_VERSION=$(ruby -v | awk '{print $2}')
export RBENV_INSTALLED=0
fi
@mesmerze
mesmerze / bundler-exec.fish
Last active January 6, 2021 19:21 — forked from ibrasho/bundler-exec.fish
Automatically prepend "bundle exec" when appropriate (in fish shell).
# This sets up fish so that, if you type a command that should be
# run using Bundler, it first automatically prepends "bundle exec"
# to the command line buffer before executing it. Works for all
# commands found in the "bin" directory of the current bundle.
#
# To override this behavior and run such a command without Bundler,
# prefix with "command" (e.g., `command rake -T`)
#
# Pros (vs binstubs or aliases):
# * automatically adjusts to bundle changes