configs  Check-in [21cf9a05ec]

Overview
Comment:Rewrite create_symlinks.sh script
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 21cf9a05ec3bf31e9bacb3995e4aca88a2398c7254519abcf42b2cbec97b2fa6
User & Date: js on 2018-07-08 19:59:34
Other Links: manifest | tags
Context
2018-07-08
20:00
gpg.conf: Change keyserver check-in: 5f11a7aec3 user: js tags: trunk
19:59
Rewrite create_symlinks.sh script check-in: 21cf9a05ec user: js tags: trunk
19:50
gitconfig: Rename serve alias to server check-in: 8f7a075094 user: js tags: trunk
Changes

Modified create_symlinks.sh from [9e4704f793] to [eaf80b86bc].

1
2
3
4
5


6
7
8
9
10





11



12
13




#!/bin/sh
rel_dir="${PWD#$HOME/}"
echo "Configs relative to home in $rel_dir."

for i in *; do


	case $i in
		README | create_symlinks.sh | eu_US.keylayout | *~)
			;;
		*)
			ln -s $rel_dir/$i $HOME/.$i





			;;



	esac
done








|
>
>
|
|
<
<
|
>
>
>
>
>
|
>
>
>
|
<
>
>
>
>
1
2
3
4
5
6
7
8
9


10
11
12
13
14
15
16
17
18
19
20

21
22
23
24
#!/bin/sh
rel_dir="${PWD#$HOME/}"
echo "Configs relative to home in $rel_dir."

link_file() {
	ln -s "$3$rel_dir/$1" "$HOME/$2"
}

link_file gitconfig .gitconfig


mkdir -p $HOME/.gnupg
link_file gpg.conf .gnupg/gpg.conf ../
link_file tmux.conf .tmux.conf
link_file vim .vim
link_file vimrc .vimrc
link_file zshrc .zshrc

if test x"$(uname -s)" = x"Darwin"; then
	link_file eu_US.keylayout \
		"Library/Keyboard Layouts/eu_US.keylayout" ../../
else

	link_file Xdefaults .Xdefaults
	link_file Xmodmap .Xmodmap
	link_file xinitrc .xinitrc
fi