ArchWSL icon indicating copy to clipboard operation
ArchWSL copied to clipboard

Is it possible to run a command on launch without exiting?

Open wychwitch opened this issue 1 year ago • 0 comments

IMPORTANT Please read README and Docs before creating the issue.

Please fill out the below information: Describe the issue Looking in the docs and elsewhere, I can't find how to run a command (in this case cd ~) without Arch exiting immediately after. This is part of a Alacritty config and I would like it to start in Arch's home directory on startup, not the Alacritty one.

To Reproduce Steps to reproduce the behavior: run Arch.exe run cd ~ Be frustrated >:T

Expected behavior To launch into the home directory of the default user without immediately exiting.

Enviroment:

  • Windows build number: 10.0.22000.1574
  • WSL version 1/2: 2
  • ArchWSL version 22.10.16.0
  • ArchWSL Installer type zip
  • Launcher version 22020900

Additional context I know this may not be a bug, but it's not in the documentation. I know I could add it to the Arch startup script to always jump to home, but I would like to do this as a argument if possible so I have the option not to.

wychwitch avatar Mar 15 '23 20:03 wychwitch