provision wezterm
parent
b50e8c18ae
commit
20bdd87a75
31
setup-mac.sh
31
setup-mac.sh
|
@ -86,6 +86,8 @@ has_bin "xsv" || nix profile install nixpkgs#xsv
|
|||
has_bin "zola" || nix profile install nixpkgs#zola
|
||||
has_bin "zoxide" || nix profile install nixpkgs#zoxide
|
||||
|
||||
PATH="$PATH:$HOME/.nix-profile/bin"
|
||||
|
||||
if [ ! -e /Applications/kitty.app ] ; then
|
||||
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin
|
||||
fi
|
||||
|
@ -105,6 +107,7 @@ symbol_map U+23FB-U+23FE,U+2665,U+26A1,U+2B58,U+E000-U+E00A,U+E0A0-U+E0A3,U+E0B0
|
|||
remember_window_size yes
|
||||
initial_window_width 130c
|
||||
initial_window_height 35c
|
||||
copy_on_select yes
|
||||
|
||||
# BEGIN_KITTY_THEME
|
||||
# Atom One Light
|
||||
|
@ -112,6 +115,33 @@ include current-theme.conf
|
|||
# END_KITTY_THEME
|
||||
EOF
|
||||
|
||||
if [ ! -e /Applications/WezTerm.app ] ; then
|
||||
curl -Lo wezterm.zip https://github.com/wez/wezterm/releases/download/20230320-124340-559cb7b0/WezTerm-macos-20230320-124340-559cb7b0.zip
|
||||
ouch d wezterm.zip
|
||||
mv WezTerm-macos-*/WezTerm.app /Applications/ && rm -rf wezterm.zip WezTerm-macos-*
|
||||
fi
|
||||
|
||||
cat <<EOF > "$HOME/.wezterm.lua"
|
||||
local wezterm = require 'wezterm'
|
||||
local config = {}
|
||||
|
||||
if wezterm.config_builder then
|
||||
config = wezterm.config_builder()
|
||||
end
|
||||
|
||||
config.font = wezterm.font_with_fallback({
|
||||
{ family = 'Operator Mono', weight = 'Book' },
|
||||
'Symbols Nerd Font'
|
||||
})
|
||||
config.font_size = 20.0
|
||||
config.color_scheme = 'One Light (base16)'
|
||||
config.window_background_opacity = 0.9
|
||||
config.initial_rows = 30
|
||||
config.initial_cols = 120
|
||||
|
||||
return config
|
||||
EOF
|
||||
|
||||
curl -sw '%{url_effective}\n' -Lo "$HOME/.config/kitty/current-theme.conf" https://git.penguincoder.org/penguincoder/dotfiles/raw/branch/main/dot_config/kitty/current-theme.conf
|
||||
|
||||
curl -sw '%{url_effective}\n' -Lo "$HOME/.config/starship.toml" https://git.penguincoder.org/penguincoder/dotfiles/raw/branch/main/dot_config/starship.toml
|
||||
|
@ -203,7 +233,6 @@ curl -sw '%{url_effective}\n' -Lo "$HOME/.vimrc" https://git.penguincoder.org/pe
|
|||
install -m 640 ./.zshrc "$HOME/"
|
||||
|
||||
AUTO_FILE="$HOME/.zshrc.auto"
|
||||
PATH="$PATH:$HOME/.nix-profile/bin"
|
||||
echo > "$AUTO_FILE"
|
||||
atuin init zsh >> "$AUTO_FILE"
|
||||
direnv hook zsh >> "$AUTO_FILE"
|
||||
|
|
Loading…
Reference in New Issue