My dotfiles, now being managed with a bare git repo.
To use these dotfiles:
# make sure to install rsync
git_repo="https://github.com/ryangreenup/dotfiles"
tmp_dot_dir="$(mktemp -d)"
dot_dir="$HOME/.local/share/dotfiles"
git clone --separate-git-dir="${dot_dir}" "${git_repo}" "${tmp_dot_dir}"
rsync --recursive --verbose --exclude '.git' "${tmp_dot_dir}"/ $HOME/
alias gd='git --work-tree $HOME --git-dir $dotfiles_dir $argv'
gd config --local status.showUntrackedFiles no
gd reset --hard
cd ~/.local/share/fonts && sh 00_get_fonts.sh
gitui -w $HOME -d "${dot_dir}"
# Make Depends for native fzf
xbps-install cmake gcc clang
# Fonts
fonts=""
# Noto
fonts="${fonts} nerd-fonts"
# Noto
fonts="${fonts} noto-fonts-cjk"
fonts="${fonts} noto-fonts-emoji"
fonts="${fonts} noto-fonts-ttf"
fonts="${fonts} noto-fonts-ttf-extra"
# Awesome
fonts="${fonts} font-awesome"
fonts="${fonts} font-awesome5"
fonts="${fonts} font-awesome6"
xbps-install "${fonts}"
Requires Nerdfonts:
Distro | Source |
---|---|
FreeBSD | x11-fonts/nerd-fonts |
Arch | nerd-fonts-complete (AUR) |
MacOS | brew |
Windows | choco ??? |
OpenBSD | ↓ |
set depends zoxide broot lf atuin
function install
pacman -S $argv
end
install $depends
On alpine fzf-telescope native depends on:
apk add \
cmake \
gcc \
clang \
gcc-arm-none-eabi \
gcc-arm-none-eabi-stage1 \
gcc-riscv-none-elf \
gcc-riscv-none-elf-stage1 \
musl-dev \
pcc-libs-dev \
rust
apk add \
man-pages \
g++
Something like this might work:
COMMENT = Iconic font aggregator, collection, & patcher
# version numbers listed in README.md
DISTNAME = chivo-1.007
REVISION = 0
CATEGORIES = fonts
GH_ACCOUNT = ryanoasis
GH_PROJECT = nerd-fonts
GH_TAGNAME = v2.1.0
HOMEPAGE = https://www.nerdfonts.com/
MAINTAINER = Ryan G <>
# SIL OFL 1.1
PERMIT_PACKAGE = Yes
PKG_ARCH = *
NO_BUILD = Yes
NO_TEST = Yes
FONTDIR = ${PREFIX}/share/fonts/${GH_PROJECT}
DOCDIR = ${PREFIX}/share/doc/${GH_PROJECT}
do-install:
${INSTALL_DATA_DIR} ${FONTDIR} ${DOCDIR}
${INSTALL_DATA} ${WRKDIST}/nerd-fonts/patched-fonts/*/complete/*.ttf ${FONTDIR}
${INSTALL_DATA} ${WRKDIST}/nerd-fonts/patched-fonts/*/complete/*.otf ${FONTDIR}
.include <bsd.port.mk>
To use only some files, consider creating seperate branches or implementing a tool like GNU.