-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap
executable file
·60 lines (45 loc) · 1.3 KB
/
bootstrap
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
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/env fish
set -l fish_functions ~/.config/fish/functions
set -l nvim_colors ~/.config/nvim/colors
set -l nvim_snippets ~/.config/nvim/snippets
cd (dirname (status -f))
pwd
echo 'Creating symlinks...'
echo ''
echo '~/.config/kitty/kitty.conf'
mkdir ~/.config/kitty
ln -s (pwd)/kitty/kitty.conf ~/.config/kitty/kitty.conf
echo '~/.config/kitty/ssh.conf'
ln -s (pwd)/kitty/ssh.conf ~/.config/kitty/ssh.conf
echo '~/.config/fish/config.fish'
ln -s (pwd)/fish/config.fish ~/.config/fish/config.fish
if [ -d $fish_functions ]
echo $fish_functions ' already exists'
else
echo $fish_functions
ln -s (pwd)/fish/functions $fish_functions
end
echo '~/.config/nvim/init.lua'
ln -s (pwd)/nvim/init.lua ~/.config/nvim/init.lua
if [ -d $nvim_colors ]
echo $nvim_colors ' already exists'
else
echo $nvim_colors
ln -s (pwd)/nvim/colors $nvim_colors
end
if [ -d $nvim_snippets ]
echo $nvim_snippets ' already exists'
else
echo $nvim_snippets
ln -s (pwd)/nvim/snippets $nvim_snippets
end
echo '~/.gitconfig'
ln -s (pwd)/git/.gitconfig ~/.gitconfig
echo '~/.gitconfig-yumpu'
ln -s (pwd)/git/.gitconfig-yumpu ~/.gitconfig-yumpu
echo '~/.gitignore'
ln -s (pwd)/git/.gitignore ~/.gitignore
echo '~/.ackrc'
ln -s (pwd)/ack/.ackrc ~/.ackrc
echo '~/.editorconfig'
ln -s (pwd)/nvim/.editorconfig ~/.editorconfig