Compare commits

...

2 Commits

Author SHA1 Message Date
75d59e3326 fix curl font 2026-04-03 14:36:20 +09:00
b3dbd1bfe0 rm aifont 2026-04-03 14:32:16 +09:00
2 changed files with 10 additions and 4 deletions

Binary file not shown.

View File

@@ -5,7 +5,7 @@
dotdir="${1:-$HOME/dotfiles}"
files=(.zshrc .vimrc .tmux.conf .gitconfig .config/karabiner/karabiner.json)
dirs=(.zsh .vim/plugin .tmux .local/bin .local/share/fonts)
dirs=(.zsh .vim/plugin .tmux .local/bin)
# backup and symlink files
for f in "${files[@]}"; do
@@ -55,9 +55,15 @@ if [ ! -f "$HOME/.vim/autoload/plug.vim" ]; then
echo "vim plugins: installed"
fi
# install font (mac only)
if [ "$(uname)" = "Darwin" ] && [ -f "$dotdir/.local/share/fonts/aifont.ttf" ]; then
cp -f "$dotdir/.local/share/fonts/aifont.ttf" ~/Library/Fonts/aifont.ttf
# install font
fontpath="$HOME/.local/share/fonts/aifont.ttf"
if [ ! -f "$fontpath" ]; then
mkdir -p "$HOME/.local/share/fonts"
curl -sL -o "$fontpath" https://git.syui.ai/ai/font/raw/branch/main/aifont.ttf
echo "font: downloaded aifont.ttf"
fi
if [ "$(uname)" = "Darwin" ] && [ -f "$fontpath" ]; then
cp -f "$fontpath" ~/Library/Fonts/aifont.ttf
echo "font: aifont.ttf -> ~/Library/Fonts/"
fi