Prefer installing Wezterm from Flatpak

This commit is contained in:
Zoé Cassiopée Gauthier 2024-05-21 09:52:10 -04:00
parent 5b646567ce
commit bf2e2e9718
5 changed files with 46 additions and 32 deletions

View File

@ -38,10 +38,10 @@ if [ ! -d ~/.oh-my-zsh ]; then
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended --keep-zshrc
fi
if [ ! -d ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions ]; then
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions "${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions"
fi
if [ ! -d ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting ]; then
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting"
fi
mkdir -p ~/.oh-my-zsh/custom/themes
ln -sf "$DOTFILES/themes/witchhazelhypercolor.zsh-theme" ~/.oh-my-zsh/custom/themes/witchhazelhypercolor.zsh-theme
@ -52,11 +52,3 @@ ln -sf "$DOTFILES/themes/witchhazelhypercolor.zsh-theme" ~/.oh-my-zsh/custom/the
if ! [ -x "$(command -v starship)" ]; then
sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- -y
fi
### Wezterm
curl -LO https://github.com/wez/wezterm/releases/download/nightly/WezTerm-nightly-Ubuntu18.04.AppImage
chmod +x WezTerm-nightly-Ubuntu18.04.AppImage
mkdir -p ~/.local/bin
mv WezTerm-nightly-Ubuntu18.04.AppImage ~/.local/bin/wezterm

View File

@ -1,5 +1,25 @@
[init]
defaultBranch = main
[pull]
ff = only
[user]
name = Zoé Cassiopée Gauthier
email = hello@blorp.dev
[init]
defaultBranch = main
[core]
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
syntax-theme = witchhazelhypercolor
[merge]
conflictstyle = diff3
[diff]
colorMoved = default

View File

@ -1,21 +1,13 @@
local wezterm = require 'wezterm';
return {
colors = {
foreground = "#f8f8f2",
background = "#282634",
cursor_bg = "#f8f8f0",
cursor_border = "#f8f8f0",
cursor_fg = "#060709",
selection_bg = "#8077a8",
selection_fg = "#f6e1ce",
ansi = {"#040303","#f92672","#c2ffdf","#e6c000","#c2ffdf","#ffb8d1","#c5a3ff","#f8f8f0"},
brights = {"#6090cb","#ff857f","#c2ffdf","#ffea00","#c2ffdf","#ffb8d1","#c5a3ff","#f8f8f0"},
},
font = wezterm.font_with_fallback({
local wezterm = require 'wezterm'
local config = {}
config.font = wezterm.font_with_fallback {
{ family="IBM Plex Mono", weight="DemiBold" },
"FreeMono",
}),
initial_cols = 140,
initial_rows = 50,
enable_wayland = false,
}
config.color_scheme = "Fairy Floss Dark (Gogh)"
config.initial_cols = 140
config.initial_rows = 50
config.enable_wayland = false
return config

8
zshenv
View File

@ -9,3 +9,11 @@ fi
if [ -f "/opt/zig" ]; then
export PATH=$PATH:/opt/zig
fi
if [ -d "$HOME/.pyenv" ]; then
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
fi
export CARGO_MOMMYS_MOODS="chill/ominous/thirsty/yikes"

2
zshrc
View File

@ -140,3 +140,5 @@ alias idot='dot -Tsvg -Gbgcolor="transparent" -Ecolor="#f8f8f2ff" -Efontcolor="#
if which starship >/dev/null 2>&1; then
eval "$(starship init zsh)"
fi
eval "$(~/.rbenv/bin/rbenv init - zsh)"