This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
while true; do | |
fd -e ex -e exs -e eex -e leex | entr -cr mix phx.server | |
# 130 is SIGTERM; everything else is an error | |
if [ $? -ne 130 ]; then | |
continue | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Install one or more versions of specified language | |
# e.g. `vmi rust` # => fzf multimode, tab to mark, enter to install | |
# if no plugin is supplied (e.g. `vmi<CR>`), fzf will list them for you | |
# Mnemonic [V]ersion [M]anager [I]nstall | |
version-manager::install() { | |
local lang=${1} | |
if [[ ! $lang ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ask() { | |
# https://djm.me/ask | |
local prompt default reply | |
while true; do | |
if [ "${2:-}" = "Y" ]; then | |
prompt="Y/n" |