dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.margiolis.net/dotfiles.git
Log | Files | Refs | README | LICENSE

commit c7867b5aab6bedfc5885ed8ab20592690317ba9f
parent bfbd6a0ad1522e266c6333de32c6ffa5330b1e71
Author: Christos Margiolis <christos@margiolis.net>
Date:   Sat, 17 Dec 2022 00:06:41 +0200

changes

Diffstat:
M.gitignore | 5++---
MLICENSE | 2+-
MREADME | 18++++--------------
Aautoinstall | 23+++++++++++++++++++++++
Afilebackup | 17+++++++++++++++++
Dfreebsd/.login_conf | 8--------
6 files changed, 47 insertions(+), 26 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -7,6 +7,5 @@ mutt/ ncmpcpp/.config/ncmpcpp/* !ncmpcpp/.config/ncmpcpp/config sfeed/ -freebsd/devfs.conf -freebsd/hosts -freebsd/src-env.conf +freebsd/ +homedir/ diff --git a/LICENSE b/LICENSE @@ -1,6 +1,6 @@ MIT License -(c) 2019-Present Christos Margiolis <christos@christosmarg.xyz> +(c) 2019-Present Christos Margiolis <christos@margiolis.net> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in diff --git a/README b/README @@ -1,21 +1,11 @@ Christos' dotfiles ================== -Dependencies ------------- -- stow -- the programs each config directory needs +This system uses stow(8) to deploy the dotfiles. -Deployment ----------- +Usage +----- $ cd ~ $ git clone git://git.margiolis.net/dotfiles.git $ cd dotfiles - $ stow dir... - -where `dir...` the directories to be deployed. - -Note ----- -On FreeBSD, all the files in `freebsd` need to be copied, -not symlinked with or without stow. + # ./autoinstall diff --git a/autoinstall b/autoinstall @@ -0,0 +1,23 @@ +#!/bin/sh + +ignoredirs="\.|\.git|freebsd|homedir|xbindkeys" +homedirs="$(ls -a homedir/ | grep -Ev '^\.$|^\.\.$')" + +mkdir -p ${HOME}/.config + +find . -type d -maxdepth 1 | xargs -r basename | grep -Ev ${ignoredirs} | +xargs -r stow -v + +for h in ${homedirs}; do + test -d "${h}" && mkdir -pv ${HOME}/${h} + cp -rv homedir/${h} ${HOME}/ +done + +cp -v \ + freebsd/devfs.conf \ + freebsd/hosts \ + freebsd/jail.conf \ + freebsd/src-env.conf \ + /etc/ +cp -v freebsd/rc.conf.desktop /etc/rc.conf +cp -v freebsd/loader.conf.desktop /boot/loader.conf diff --git a/filebackup b/filebackup @@ -0,0 +1,17 @@ +#!/bin/sh + +cp -vf \ + /etc/devfs.conf \ + /etc/hosts \ + /etc/jail.conf \ + /etc/src-env.conf \ + freebsd/ +cp -vf /etc/rc.conf freebsd/rc.conf.desktop +cp -vf /boot/loader.conf freebsd/loader.conf.desktop + +mkdir -pv homedir +cp -rv \ + ${HOME}/.gitconfig \ + ${HOME}/.ssh \ + ${HOME}/.sfeed \ + homedir/ diff --git a/freebsd/.login_conf b/freebsd/.login_conf @@ -1,8 +0,0 @@ -# $FreeBSD: releng/12.1/share/skel/dot.login_conf 77995 2001-06-10 17:08:53Z ache $ -# -# see login.conf(5) -# -me:\ - :charset=UTF-8:\ - :lang=en_US.UTF-8:\ - :setenv=LC_COLLATE=C: