Compare commits

...

4 Commits

Author SHA1 Message Date
Arti Zirk f77b79d5e7 Add notes about always loading zprofile 2023-09-25 18:03:31 +03:00
Arti Zirk 539147433f No need to manually load vte.sh.
It's loaded by /etc/profile anyway and also it does nothing on non VTE
terminals
2023-09-25 16:19:35 +03:00
Arti Zirk 3aedfdb8ef Add basic wezterm config 2023-09-25 16:12:52 +03:00
Arti Zirk e5c7719e37 Remove useless autoload fpath set from main .zshrc
It's already set in zshrc.pre file as required by grml-zsh-config
2023-09-25 16:10:18 +03:00
3 changed files with 53 additions and 5 deletions

View File

@ -0,0 +1,47 @@
-- Pull in the wezterm API
local wezterm = require 'wezterm'
-- This table will hold the configuration.
local config = {}
-- In newer versions of wezterm, use the config_builder which will
-- help provide clearer error messages
if wezterm.config_builder then
config = wezterm.config_builder()
end
-- This is where you actually apply your config choices
config.font = wezterm.font 'Terminus'
config.color_scheme = 'Tango (base16)'
config.colors = {
-- The default text color
foreground = 'white',
-- The default background color
background = 'black',
}
config.use_fancy_tab_bar = false
config.hide_tab_bar_if_only_one_tab = true
config.window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0,
}
config.enable_kitty_keyboard = true
local act = wezterm.action
config.keys = {
{ key = 'Z', mods = 'CTRL|SHIFT', action = act.ScrollToPrompt(-1) },
{ key = 'X', mods = 'CTRL|SHIFT', action = act.ScrollToPrompt(1) },
}
-- and finally, return the configuration to wezterm
return config

5
.zshrc
View File

@ -1,8 +1,5 @@
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
# so that i can autoload -Uz local functions
fpath=( ~/.config/zsh/functions $fpath)
# Use a REAL regex engine
zmodload zsh/pcre
@ -144,8 +141,6 @@ chpwd_auto_python_venv # Try to enter venv on shell startup
# https://github.com/Tarrasch/zsh-autoenv
xsource ~/.config/zsh/zsh-autoenv/autoenv.zsh
# Set gnome-terminal and other vte terminal title to current dir
xsource /etc/profile.d/vte.sh
# gitflow-zshcompletion-avh
xsource /usr/share/zsh/site-functions/git-flow-completion.zsh
# pkg not found

View File

@ -1,2 +1,8 @@
# Load zprofile for interactive prompts
# Some packages configure environment variables via this way
#if [[ ! -o login && -o interactive ]]; then
# source /etc/zsh/zprofile
#fi
# so that i can autoload -Uz local functions
fpath=( ~/.config/zsh/functions $fpath)