]> git.sev.monster Git - dotfiles.git/blame_incremental - install.sh
added full transparent bg term, changed class name
[dotfiles.git] / install.sh
... / ...
CommitLineData
1#!/bin/sh
2
3#fix permissions from git (TODO: should probably move this to git hook)
4chmod go= base/.zshenv base/.Xresources
5
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 # TODO: use install?
16 [ -L "$1" -o \! -e "$1" ] && ln -sFhvw "${2:-$x}" "$1"
17}
18
19find "$PWD/base" -depth 1 | while read -r x; do
20 l "$HOME/`basename "$x"`"
21done
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"
25done
26find "$PWD/xdg" -depth 1 | while read -r x; do
27 l "${XDG_CONFIG_HOME:-$HOME/.config}/`basename "$x"`"
28done
29mkdir -p "$HOME/.urxvt/ext" > /dev/null 2>&1
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`"
32done
33touch "$HOME/.hushlogin"
34
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.
37cd "$HOME"
38rm .login_conf.db
39cap_mkdb .login_conf
40unlink .login_conf
41cd -
This page took 0.028231 seconds and 4 git commands to generate.