]>
Commit | Line | Data |
---|---|---|
189288f7 | 1 | #!/bin/sh |
d9362f34 | 2 | |
3 | #fix permissions from git (should probably move this to git hook) | |
4 | chmod go= base/.zshenv base/.Xresources | |
5 | ||
9938f1e2 | 6 | if [ 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" | |
12 | fi | |
13 | ||
14 | l() { | |
15 | [ -L "$1" -o \! -e "$1" ] && ln -sFhvw "$x" "$1" | |
16 | } | |
17 | ||
18 | find "$PWD/base" -depth 1 | while read -r x; do | |
19 | l "$HOME/`basename "$x"`" | |
20 | done | |
21 | find "$PWD/xdg" -depth 1 | while read -r x; do | |
22 | l "${XDG_CONFIG_HOME:-$HOME/.config}/`basename "$x"`" | |
7f0acd88 | 23 | done |
9938f1e2 | 24 | mkdir -p "$HOME/.urxvt/ext" |
25 | find "$PWD/urxvt-ext" -type f -perm -ugo=x -mindepth 1 -maxdepth 2 | while read -r x; do | |
26 | l "$HOME/.urxvt/ext/`basename $x`" | |
805ce2dc | 27 | done |
bd6360b9 | 28 | touch "$HOME/.hushlogin" |
7f0acd88 | 29 | |
39bd5e00 | 30 | #FreeBSD tries `_secure_path' on `.login_conf' before reaading the database, |
31 | #so it needs to be compiled and unlinked for it to actually take effect. | |
d9362f34 | 32 | cd "$HOME" |
39bd5e00 | 33 | rm .login_conf.db |
34 | cap_mkdb .login_conf | |
35 | unlink .login_conf | |
d9362f34 | 36 | cd - |