]> git.sev.monster Git - dotfiles.git/blame - install.sh
Merge branch 'master' of /home/ds6/git/dotfiles
[dotfiles.git] / install.sh
CommitLineData
189288f7 1#!/bin/sh
d9362f34 2
f29cd560 3#fix permissions from git (TODO: should probably move this to git hook)
d9362f34 4chmod go= base/.zshenv base/.Xresources
5
9938f1e2 6if [ 0 -eq 1 ]; then
7 alias mkdir="echo mkdir"
8 alias ln="echo ln"
9 alias rm="echo rm"
10 alias cap_mkdb="echo cap_mkdb"
11 alias unlink="echo unlink"
12fi
13
14l() {
f29cd560 15 # TODO: use install?
de6b1600 16 [ -L "$1" -o \! -e "$1" ] && ln -sFhvw "${2:-$x}" "$1"
9938f1e2 17}
18
19find "$PWD/base" -depth 1 | while read -r x; do
20 l "$HOME/`basename "$x"`"
21done
de6b1600 22mkdir "$HOME/bin" "$HOME/share" > /dev/null 2>&1
23find bin share -depth 1 | while read -r x; do
24 l "$HOME/$x" "$PWD/$x"
f29cd560 25done
9938f1e2 26find "$PWD/xdg" -depth 1 | while read -r x; do
27 l "${XDG_CONFIG_HOME:-$HOME/.config}/`basename "$x"`"
7f0acd88 28done
de6b1600 29mkdir -p "$HOME/.urxvt/ext" > /dev/null 2>&1
9938f1e2 30find "$PWD/urxvt-ext" -type f -perm -ugo=x -mindepth 1 -maxdepth 2 | while read -r x; do
31 l "$HOME/.urxvt/ext/`basename $x`"
805ce2dc 32done
bd6360b9 33touch "$HOME/.hushlogin"
7f0acd88 34
39bd5e00 35#FreeBSD tries `_secure_path' on `.login_conf' before reaading the database,
36#so it needs to be compiled and unlinked for it to actually take effect.
d9362f34 37cd "$HOME"
39bd5e00 38rm .login_conf.db
39cap_mkdb .login_conf
40unlink .login_conf
d9362f34 41cd -
This page took 0.04845 seconds and 4 git commands to generate.