fix: symlinks in chezmoi and robust scripts

This commit is contained in:
js0ny 2025-10-01 23:45:18 +01:00
parent 872a2b4d4d
commit c7d6392849
8 changed files with 29 additions and 15 deletions

View file

@ -1,8 +1,11 @@
#!/bin/sh
mkdir -p "$(bat --config-dir)/themes"
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Latte.tmTheme
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Frappe.tmTheme
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Macchiato.tmTheme
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Mocha.tmTheme
if command -v bat > /dev/null 2>&1; then
mkdir -p "$(bat --config-dir)/themes"
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Latte.tmTheme
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Frappe.tmTheme
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Macchiato.tmTheme
wget -P "$(bat --config-dir)/themes" https://github.com/catppuccin/bat/raw/main/themes/Catppuccin%20Mocha.tmTheme
fi

View file

@ -0,0 +1,12 @@
#!/bin/bash
curl -L https://github.com/lxgw/LxgwWenKai/releases/download/v1.520/lxgw-wenkai-v1.520.zip -o /tmp/lxgw-wenkai.zip
unzip /tmp/lxgw-wenkai.zip -d ~/.local/share/fonts/
curl -L https://github.com/lxgw/LxgwNeoXiHei/releases/download/v1.223/LXGWNeoXiHeiPlus.ttf -o /tmp/lxgw-xihei.zip
unzip /tmp/lxgw-xihei.zip -d ~/.local/share/fonts/
curl -L https://github.com/subframe7536/maple-font/releases/download/v7.7/MapleMono-NF-CN-unhinted.zip -o /tmp/maple-mono.zip
unzip /tmp/maple-mono.zip -d ~/.local/share/fonts/
fc-cache -fv

View file

@ -2,6 +2,6 @@
XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
mkdir -p {{XDG_DATA_HOME}}/rtorrent/session
mkdir -p {{XDG_DATA_HOME}}/rtorrent/watch
mkdir -p $XDG_DATA_HOME/rtorrent/session
mkdir -p $XDG_DATA_HOME/rtorrent/watch

View file

@ -1,6 +1,8 @@
#!/usr/bin/env bash
ya pkg add llanosrocas/yaziline
ya pkg add yazi-rs/plugins:git
ya pkg add Rolv-Apneseth/starship
if command -v yazi > /dev/null 2>&1; then
ya pkg add llanosrocas/yaziline
ya pkg add yazi-rs/plugins:git
ya pkg add Rolv-Apneseth/starship
fi