N
N
Nikita Kotenko2017-11-11 13:37:42
bash
Nikita Kotenko, 2017-11-11 13:37:42

Is it possible to run bash with options / from def. locations?

Preamble : there are a number of projects written using different technologies.
I am writing a program that deploys the entire project development environment at once, for example: prj.sublime-project, prj.psd, prj.html, git-bash.
Question : is it possible to call a bash console from a specific location?
Maybe there is an option to somehow pass parameters like '--cd /d/folder'?
Or run a sh-script with the ability (is there such a thing?) to continue working manually after the script is executed?
PS Besides 'Git Bash Here' in the context menu (Windows), i.e. Interested in the possibility of an automatic call.
PSS The option to call the project from the console with an alias is good, but not considered.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2017-11-11
@Durkgame

Or run a sh-script with the ability (is there such a thing?) to continue working manually after the script is executed?

And what's the problem actually first go to the directory, then run bash from your script, like this:
#!/bin/bash

echo this is my script
cd /mydir
bash

S
sergio_nsk, 2017-11-11
@sergio_nsk

> Or run a sh script with the option...
Various options here: https://stackoverflow.com/questions/3349105/how-to...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question