From 428a45bd5301506870665aef4ea3099f50f2444b Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Wed, 9 Jan 2013 21:28:52 +0100 Subject: [PATCH] .homeinit: fix. --- .homeinit | 14 +------------- README | 23 +++++++++++++++++------ 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/.homeinit b/.homeinit index 504ba305..e4c50cce 100755 --- a/.homeinit +++ b/.homeinit @@ -1,20 +1,8 @@ #!/bin/sh ################################################################################ ## Home session initialization. -## 2012-12-31 +## 2013-01-09 ################################################################################ - -## Fetch source from Git repo: -# cd -# git init -# git remote add origin https://github.com/Ambrevar/home-config.git -# git fetch -# git branch master origin/master -# git checkout master - -################################################################################ -## The following is used as first-run setup. - SOURCEDIR="${HOME}/personal/dataperso" [ -z "$XDG_CONFIG_HOME" ] && XDG_CONFIG_HOME="$HOME/.config" [ -z "$XDG_DATA_HOME" ] && XDG_DATA_HOME="$HOME/.local/share" diff --git a/README b/README index 355fcc83..03da3e51 100644 --- a/README +++ b/README @@ -20,21 +20,32 @@ In case you still want to copy some files -- for quick and dirty testing purpose -- do not forget that most of the files are in hidden folders. Also note that in some shells, the '*' joker will NOT match hidden files, that is - cp -r source-dir/* dest-dir/ + cp -r source-dir/* dest-dir/ will copy non-hidden folders only. To match all folders, use the following joker instead: - cp -r source-dir/{.*,*} dest-dir/ # zsh - cp -r source-dir/{.??*,*} dest-dir/ # bash + cp -r source-dir/{.*,*} dest-dir/ # zsh + cp -r source-dir/{.??*,*} dest-dir/ # bash Still, the solution for bash is not perfect as it affects 3 characters files only. A more convenient solution: - # bash only. - shopt -s dotglob - cp -r source-dir/* dest-dir/ + # bash only. + shopt -s dotglob + cp -r source-dir/* dest-dir/ +Git makes it possible to use your home folder as a git repo, thus versioning +all files directly. To fetch source from Git repo: + + cd + git init + git remote add origin https://github.com/Ambrevar/home-config.git + git fetch + git branch master origin/master + git checkout master + +################################################################################ Some applications will need extra dependencies other than the default ones. You might have a look at the .pkg-* files to see what software I've been using.