Last active
March 5, 2023 03:06
-
-
Save teefan/fdcd633b34d843fbb2e6571fa7078da3 to your computer and use it in GitHub Desktop.
Fix Cygwin Ruby missing command alias
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
export RUBY_BIN="/cygdrive/c/Ruby32-x64/bin" | |
for file in $RUBY_BIN/*.bat; do | |
base=$(basename -- "$file") | |
cmd="${base%.*}" | |
alias $cmd="$file" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment