1.2 KiB
Executable file
1.2 KiB
Executable file
wzp
This script automates the process of starting a new Wezterm project. It allows you to select a project from a predefined list or specify a project name as an argument.
Usage
Run the script without any arguments to select a project from the list of available projects. Alternatively, you can provide a project name as an argument to start that specific project.
./wzp [project_name]
Example Usage
- Select a project from the list:
./wzp
- Start a specific project:
./wzp my_project
Script Details
- The script sets the
PROJECTS_DIRto~/.config/wezterm/projects. - If no argument is provided, the script lists all
.luafiles in thePROJECTS_DIRand allows the user to select one usingfzf. - If an argument is provided, the script checks if the corresponding
.luafile exists in thePROJECTS_DIR. - If a project is selected or specified, the script sets the
WZ_PROJECTenvironment variable and starts Wezterm with the selected project.
Notes
- Ensure
fdandfzfare installed on your system (brew install fd fzfon macOS). - The script relies on the presence of
.luafiles in thePROJECTS_DIRto list and start projects.