-
Notifications
You must be signed in to change notification settings - Fork 3
/
win.yml
50 lines (48 loc) · 1.67 KB
/
win.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
### how to keep the source of truth in dotfiles in wsl
# clone dotfiles in windows file system like `%appdata%/dotfiles-for-win`
#
# symlink from windows via `cd %appdata%\alacritty && mklink alarcritty.yml ..\dotfiles-for-win\alacritty\win.yml`
# then now tracking and applying can be done with one file thanks to symlinks
#
# symlink from wsl `ln -s /mnt/c/Users/[windows username]/Roaming/dotfiles-for-win` (so that I can edit dotfiles on wsl)
# keep one dotfiles on windows and one dotfiles on wsl and sync via git when necessary for better disk performance on wsl
window:
title: Alacritty
decorations: full
startup_mode: Fullscreen
padding:
x: 0
y: 0
live_config_reload: true
env:
# https://github.com/alacritty/alacritty/issues/2711#issuecomment-525027985
TERM: alacritty
# without this ubuntu-22.04 has issue with starship prompt
# https://github.com/starship/starship/issues/2176
# but unbuntu-20.04 works fine at the time of writing this
LC_ALL: C.UTF-8
WSLENV: TERM:LC_ALL
font:
normal:
family: FiraCode NF
style: Regular
# skip specifying families to below to fallback to normal ones
bold:
style: Bold
# thanks to https://github.com/alacritty/alacritty/issues/894#issuecomment-647877980
italic:
style: Oblique
bold_italic:
style: Bold Oblique
size: 11.0
key_bindings:
# To cancel ctrl+shift c/v - https://www.reddit.com/r/linuxquestions/comments/iovvc2/comment/g4ghw6q/?utm_source=share&utm_medium=web2x&context=3
# skipping with ctrl+c as this is necessary to SIGINT
# - key: C
# mods: Control
# action: Copy
- key: V
mods: Control
action: Paste
shell:
program: wsl -- bash -c -l 'cd && zsh -c "tmux-attach wsl"'