Add a script "as a programme"

Add your script "as programme" to GitBash to use them more conveniently

Create the script

Create the script in nano or notepad and save it (extension does not matter)

The first line must be #!/bin/bash to make it executed by bash.

the script

Copy into `/usr/bin/` folder

locate your /usr/bin/ folder on windows

Location of /usr/bin/ folder

Copy as administrator

copy as administrator

See its copied

hello_world is in the /usr/bin/

Restart bash

close GitBash

Open GitBash wherever you want

open GitBash

Check `hello_world` is in /usr/bin/ "as a programme"

hello_world exists

Run the file

Start typing `hello` and use Tab completion

Tab complete
after tab completion

Script runs

Script runs as a programme

Last updated