citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit 9d2edb8e518c39cdf8a0858d41e1343b7388c74a
parent 62d8cba91c7a308115595c4c56e853b9f79550ed
Author: William Casarin <jb55@jb55.com>
Date:   Mon,  4 Jan 2021 10:50:00 -0800

skel usage

Diffstat:
Mbin/skel | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/bin/skel b/bin/skel @@ -1,2 +1,10 @@ #!/usr/bin/env bash -exec cp -vr --no-clobber $HOME/dotfiles/skeletons/$1/. . +SKELETON_CLOSET=${SKELETON_CLOSET:-$HOME/dotfiles/skeletons} +if [ -z "$1" ]; then + printf "usage: skel <skeleton>\n\n" + printf "skeletons\n\n" + ls -1 $SKELETON_CLOSET | sed 's,^, ,' + printf "\n" + exit 0 +fi +exec cp -vr --no-clobber "$SKELETON_CLOSET/$1"/.