Skip to content

aquawius/wezterm-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My own wezterm configuration file

Yet another wezterm configuration file based on dracula color scheme, adding some useful features.

gif


✅ Features

  • Dracula color scheme.
  • Nice looking bottom bar.
  • Supports quick startup of various environments. (Need adjust config file)

🎨 Some Screenshot

Screenshot1

Screenshot2

🔨 Get started

  1. turn to your homedir/.config/ folder.
    cd C:/Users/ `username` /.config/

    (create '.config' folder if there is no '.config' folder)

  2. clone the repository.
git clone https://github.com/aquawius/wezterm-config.git
  1. rename wezterm-config to wezterm.
C:\USERS
├─Public
├─QU(Your home directory)
│  ├─Documents
│  ├─Downloads
│  ├─Pictures
│  ├─.config
│  │  ├─git
│  │  └─wezterm	(rename wezterm-config to wezterm)
│  │     └─.git
│  │     dracula.lua
│  │     readme.md
│  │     wezterm.lua
│  │        ...
  1. Done

Issue and PR is welcomed. 😄


📌 ​How to Use

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 terminals

right_click_to_open_list

Middle click selected tab to close this tab.

middle_click_to_close_tab


💬 The thing you should know
  1. The default font of config is CascadiaCode nerd font, you can download it this link: https://www.nerdfonts.com/font-downloads.

  2. The default shell is powershell7 (pwsh.exe), on Linux is fish. 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"}
        })
  3. 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.

Releases

No releases published

Packages

No packages published

Languages