My own wezterm configuration file
Yet another wezterm configuration file based on dracula color scheme, adding some useful features.
- Dracula color scheme.
- Nice looking bottom bar.
- Supports quick startup of various environments. (Need adjust config file)
-
cd C:/Users/ `username` /.config/
(create '.config' folder if there is no '.config' folder)
git clone https://github.com/aquawius/wezterm-dracula-theme.git
C:\USERS
├─Public
├─QU(Your home directory)
│ ├─Documents
│ ├─Downloads
│ ├─Pictures
│ ├─.config
│ │ ├─git
│ │ └─wezterm (rename wezterm-dracula-theme to wezterm)
│ │ └─.git
│ │ dracula.lua
│ │ readme.md
│ │ wezterm.lua
│ │ ...
Issue and PR is welcomed. 😄
You can find an +
on the bottom of the terminal.
Left click
+
to create a default terminal. (pwsh.exe)Right click
+
to select, you should enter a list of all your terminalsMiddle click selected tab to close this tab.
-
The default font of config is CascadiaCode nerd font, you can download it this link: https://www.nerdfonts.com/font-downloads.
-
The default shell is
powershell7
(pwsh.exe), on Linux isfish
. If you haven't these shells (or do not use these shells), you can disable them on comment the following lines:Change default shell:
default_prog = {'pwsh'},
Change shells list:
table.insert(config.launch_menu, { label = "Command Prompt", args = {"cmd.exe"} }) table.insert(config.launch_menu, { label = "PowerShell 5", args = {"powershell.exe", "-NoLogo"} }) table.insert(config.launch_menu, { label = "PowerShell 7", args = {"pwsh.exe", "-NoLogo"} }) table.insert(config.launch_menu, { label = "Anaconda PowerShell Prompt", args = {"pwsh", "-NoLogo", "-NoExit", "-ExecutionPolicy", "Bypass", "-Command", "& 'C:\\ProgramData\\anaconda3\\shell\\condabin\\conda-hook.ps1' ; conda activate 'C:\\ProgramData\\anaconda3' "} }) table.insert(config.launch_menu, { label = "VS Command Prompt 2022 (PowerShell 7)", args = {"pwsh", "-NoLogo", "-NoExit", "-ExecutionPolicy", "Bypass", "-NoProfile", "-Command", " & 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\Tools\\Launch-VsDevShell.ps1'"} }) table.insert(config.launch_menu, { label = "Default WSL Command Prompt", args = {"wsl"} })
-
For Chinese/English user, if you want to get launch_menu correctly (especially wsl distributions), you should uncomment the following line:
-- For English Users, the default line:
-- local distro = line:gsub(" %(Default%)", "")
-- For Chinese User,
local distro = line:gsub(" %(默认%)", "")
You can change all the stuff on change configuration. (If you have time to read Wezterm document.)
There's no License on this repo, do all the stuff you want to do, please show all your imagination to improve it.