-
Notifications
You must be signed in to change notification settings - Fork 1
/
create-symlinks.sh
executable file
·50 lines (43 loc) · 1.2 KB
/
create-symlinks.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/sh
dotdir=$(pwd)
create()
{
if [ -f $2 ] || [ -d $2 ]; then
echo "Skipping $2 ... already present"
else
ln -s $dotdir/$1 $2
echo "Created symlink $dotdir/$1 -> $2"
fi
}
create bashrc ~/.bashrc
create gitconfig ~/.gitconfig
create vim ~/.vim
create vimrc ~/.vimrc
create selected_editor ~/.selected_editor
create tmux.conf ~/.tmux.conf
create tigrc ~/.tigrc
create bash_profile ~/.bash_profile
create gitexcludes ~/.gitexcludes
create bash_aliases ~/.bash_aliases
create nanorc ~/.nanorc
create inputrc ~/.inputrc
create zshrc ~/.zshrc
create p10k.zsh ~/.p10k.zsh
if [ ! -f ~/local.bash_aliases ]; then
touch ~/local.bash_aliases
fi
if [ ! -f ~/local.gitconfig ]; then
echo "# local only configuration which may differ from machine to machine
[user]
name = Christian Breunig
email = [email protected]
[http]
# for communication with www repositories accessible via proxy
# you need to define a proxy (probably also for http)
# proxy = http://user:[email protected]:80
# stop verifying SSL for self signed certificates (only if
# really required! Think about the consequences
# sslVerify = false
" > ~/local.gitconfig
echo "Created ~/local.gitconfig"
fi