How to launch babun in a specified directory via the command line

babun discontinued
cygwin
cmder
zsh windows
babun vs cmder
zsh portable
babun wiki
babun meaning

now I'm currently using Visual Studio Code and I wanted to make the terminal use babun instead of the default cmd.exe In fact, I have already managed to do that in theory - the problem is that, unlike with cmd.exe, the directory that I'm in upon starting the terminal is no longer the currently open project, it's just simply /home/myusername (i.e. a path in babun's directory tree). This kinda sucks, since I don't really want to navigate to my directory every time. Next, I also found out how to tell babun (in my case, zsh.exe) to use a default directory such as C:/ by adding cd /cygdrive/c to the end of .zshrc - Unfortunately, that's not what I want either, since I don't want babun to always use the same directory.

Now I figured that, seeing as this would be the most comfortable option with VSC*, there might be some console argument that tells zsh.exe to use a specific directory. Sadly, I couldn't find anything, hence this question. Weirdly enough

Anyone know how to help me out? Appreciate the help :)

*VSC allows you to specify the path to your shell, as well as an array of arguments that will be passed.

You could place your directory into a cmd file and run it as a shell:

d:
@rem note that's important to change the drive 'permanently'
cd d:\home
zsh.exe

And then specify this cmd file as shell to invoke.

Babun, Run the Babun Shell in Cmder. Click on the + sign to add a new Task. Set a name for your Task (i.e. Babun) Set the Task parameters. Make sure to configure the default directory to where you want it. Set the Task command. Run the Babun Shell in Cmder. Now, that you have installed and configured Babun and zsh, it is time to unleash the full power and pack it in Cmder. Open up Cmder and press Win + Alt + T to open the Startup -> Tasks configuration window like so: Configure Babun in Cmder. Click on the + sign to add a new Task; Set a name for your Task (i.e. Babun)

Open the desired directory in a file explorer, right click, then select Open Babun here.

How to run the Babun shell in Cmder - Gingter Ale, Either add a command line argument for directory, or add install instructions for passing Finally, you need to open the babun.bat and and edit the ref. GitHub is home to over 50 million developers working together to host and review Then the user would have to specify the /target with a custom folder. Create a new task. Task parameters - /icon "%userprofile%\.babun\cygwin\bin\mintty.exe" /dir "%userprofile%". Commands %userprofile%\.babun\cygwin\bin\mintty.exe /bin/env CHERE_INVOKING=1 /bin/zsh.exe. Babun is available in the "Create new console" menu. 13.

Babun currently does not natively support a command line parameter specifying the directory to launch in.

However, there is a pull request in the Babun GitHub which solves the issue. Unfortunately, it doesn't seem to be likely to be accepted anytime soon, though.

To gain access to the feature manually, check out the pull request.

Custom install folder · Issue #85 · babun/babun · GitHub, GitHub is home to over 50 million developers working together to host and review code, Use the '/target' option to install babun to a custom directory. Babun features an silent command-line installation script that may be executed The start.sh is an optional script for plugins that require triggering certain actions on  How to launch babun in a specified directory via the command line now I'm currently using Visual Studio Code and I wanted to make the terminal use babun instead of the default cmd.exe In fact, I have already managed to do that in theory - the problem is that, unlike

babun/babun: Babun - a Windows shell you will love!, The Cygwin home directory for Babun is Make certain that you save the program with the correct file extension of After running the command, you should see a window like the following:. Is it possible to set babun's working directory to the same location from which it was invoked? It would be very useful when I'm in a windows comman line (cmd.exe) and want to switch to babun and stay in the same directory.

How to Install Cygwin Using Babun - Cabrillo College, gitk ~ /usr/bin/gitk: line 3: exec: wish: not found I'm getting an error running rpmbuild on baboon (Windows 8 64bit): C:\dev\tools\babun.babun\cygwin\bin\​cygnssutil3.dll: Loaded to different address: No such file or directory -- /​cygdrive/c/Ruby22-x64/bin/sass (LoadError)? Is it possible to open babun via Conemu? HI, can I ask when I execute the command in inside the folder of homestead first i right click (open Babun here). then when Babun launch i type vagrant up, but it says Bringing machine 'default' up with 'virtualbox' provider

babun/babun, -l : displays more information about your files and folders (you'd enter it as ls -l in your shell) If your command line is running something it shouldn't be, use Ctrl+​C to your Terminal/Babun shell will be cleared of all commands and output. measure -lines [filename] : get the line count for the given file (Windows ONLY). You can also open files from Command Prompt. Wonder how to open a file or folder in Command Prompt on Windows 10? Check the step-by-step guide in this tutorial. How to Open a File CMD Windows 10 in 2 Steps Step 1 – Open Command Prompt. You have several ways to open Command Prompt in Windows 10.

Comments
  • If I wanted to do the same thing with cmd.exe, I'd do cmd.exe /k "cd C:\desired\path" Unfortunately, that doesn't work with babun :(
  • Is it possible to add a check to your .zshrc whether the caller was vscode? Another idea could be to write a cmd file that changes to the right dir then invokes zsh.exe. I have neither of these tools installed except cygwin, just guessing.
  • I'll give it a shot, but seeing as I'd like the terminal to run inside of VSC, I'm not sure it'll work
  • @PixelMaster Did you have a look into this: github.com/Microsoft/vscode/issues/15531 ? terminalHere.create
  • Haven't had a look so far, but I don't think it'd help - seeing as I don't want the regular windows shell, but a babun shell. The normal cmd.exe-shell works fine & launches in the correct directory. Anyways, I opened an issue on babun's github repository. Hopefully someone there will know an answer (and also make the effort of sharing it ^^)
  • I know that this works, I even reference this possibility in the question. The goal here is to open babun via the command line, not manually with a mouse.