]> git.sev.monster Git - dotfiles.git/blame - install.sh
zsh prompt %m -> %2m
[dotfiles.git] / install.sh
CommitLineData
189288f7 1#!/bin/sh
d9362f34 2
3#fix permissions from git (should probably move this to git hook)
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() {
15 [ -L "$1" -o \! -e "$1" ] && ln -sFhvw "$x" "$1"
16}
17
18find "$PWD/base" -depth 1 | while read -r x; do
19 l "$HOME/`basename "$x"`"
20done
21find "$PWD/xdg" -depth 1 | while read -r x; do
22 l "${XDG_CONFIG_HOME:-$HOME/.config}/`basename "$x"`"
7f0acd88 23done
9938f1e2 24mkdir -p "$HOME/.urxvt/ext"
25find "$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 27done
bd6360b9 28touch "$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 32cd "$HOME"
39bd5e00 33rm .login_conf.db
34cap_mkdb .login_conf
35unlink .login_conf
d9362f34 36cd -
This page took 0.050107 seconds and 4 git commands to generate.