Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Git Shell #112

Open
zachio opened this issue Oct 24, 2016 · 1 comment
Open

Windows Git Shell #112

zachio opened this issue Oct 24, 2016 · 1 comment

Comments

@zachio
Copy link

zachio commented Oct 24, 2016

I use Git Shell for Windows as a part of my work flow. I confirmed the lua folder path was added to the windows environmental PATH variables however I could not get lua to work with Git Shell. Does anyone know how to do this?

@zzjtnb
Copy link

zzjtnb commented May 25, 2024

Here are the steps to configure a Lua alias on Windows using Git Bash:

  1. Open Git Bash.
  2. Check if the .bash_profile file exists. If it does, open it. If it doesn't exist, create a new .bash_profile file.
  3. In the .bash_profile file, add a line to map the lua command to lua.exe.
  4. Save and close the .bash_profile file.
  5. Reload the .bash_profile file.

Here's a complete step-by-step guide and code example:

# Open Git Bash

# Check if .bash_profile file exists

ls ~/.bash_profile

# If the .bash_profile file exists, open it
vim ~/.bash_profile

# Add the following line in the .bash_profile file
alias lua='lua.exe'

# Save and close the .bash_profile file
:wq

# Reload the .bash_profile file
source ~/.bash_profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants