update ubuntu dockerfile

update wezterm configuration
This commit is contained in:
xfy
2024-09-03 09:40:26 +08:00
parent 1a6f0b2c09
commit 5cdd0272a7
3 changed files with 26 additions and 0 deletions

View File

@ -4,6 +4,7 @@ RUN sed -i 's@//.*archive.ubuntu.com@//mirrors.tuna.tsinghua.edu.cn@g' /etc/apt/
&& sed -i 's@//.*security.ubuntu.com@//mirrors.tuna.tsinghua.edu.cn@g' /etc/apt/sources.list.d/ubuntu.sources \
&& apt-get update -y \
&& apt-get install -y git ninja-build gettext cmake unzip curl build-essential sudo zsh htop vim \
python3 python3-pip \
# install neovim
&& cd /opt && git clone --depth 1 https://gitee.com/mirrors/neovim && cd neovim \
&& make CMAKE_BUILD_TYPE=Release \
@ -50,5 +51,8 @@ RUN LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygi
&& sudo install lazygit /usr/local/bin \
&& rm -rf lazygit \
&& rm -rf lazygit.tar.gz
# pypi tsinghua
RUN pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
# python3 -m pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple --upgrade pip \
ENTRYPOINT ["/bin/zsh"]

22
wezterm/linux/wezterm.lua Normal file
View File

@ -0,0 +1,22 @@
local wezterm = require 'wezterm'
local config = wezterm.config_builder()
config.font = wezterm.font 'JetBrainsMono Nerd Font'
--[[ config.default_prog = { "C:\\Users\\xfy\\AppData\\Local\\Microsoft\\WindowsApps\\pwsh.exe" } ]]
-- ui
--[[ config.initial_rows = 50 ]]
--[[ config.initial_cols = 198 ]]
config.window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0,
}
config.window_decorations = "NONE"
config.window_background_opacity = 0.93
config.hide_tab_bar_if_only_one_tab = true
config.color_scheme = "Catppuccin Mocha"
return config