Skip to content

Instantly share code, notes, and snippets.

@namandixit
Created February 12, 2026 03:52
Show Gist options
  • Select an option

  • Save namandixit/9c0ca35d5c6c4f746fb6600bf25dad72 to your computer and use it in GitHub Desktop.

Select an option

Save namandixit/9c0ca35d5c6c4f746fb6600bf25dad72 to your computer and use it in GitHub Desktop.
Launch terminal in project directory

These scripts are used to start the shell in various operating systems. They are designed to be put in the project directory and should setup the environment in the launched terminal.

@ECHO off
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
SET ProjectName=my_cool_project
SET ProjectRoot=%~dp0
CD %ProjectRoot%
CALL %ProjectRoot%..\..\toolchains\_env.windows.bat
DOSKEY emacs="C:\Program Files\Emacs\emacs-30.2\bin\runemacs.exe" $*
cmd /K "color 0E&title Project: %ProjectName%&prompt $E[1;96;40m$d$s$t$_$p$s$+$g$s$E[0;93;40m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment