install system and script

This commit is contained in:
Marcel Kapfer 2017-12-09 16:01:37 +01:00
parent 273e859d73
commit 44f89359ec
3 changed files with 45 additions and 0 deletions

7
dirs.list Normal file
View file

@ -0,0 +1,7 @@
.config/khal
.config/khard
.vdirsyncer
.emacs.d
.config/nvim
.config/redshift
.config/fish

19
install.fish Executable file
View file

@ -0,0 +1,19 @@
#!/usr/bin/fish
# Script for linking the dotfiles
echo "Creating necessary directories"
for dir in (cat dirs.list)
echo "Creating directory:" ~/$dir
mkdir -p ~/$dir
end
echo "Linking the dotfiles"
for link in (cat links.list)
set link (string split " " $link)
echo "creating symlink from" ~/dotfiles/$link[1] "to" ~/$link[2]
ln -s ~/dotfiles/$link[1] ~/$link[2]
end
echo "done"

19
links.list Normal file
View file

@ -0,0 +1,19 @@
dotdotfiles/git/gitconfig .gitconfig
dotdotfiles/khal/config .config/khal/config
dotdotfiles/khard/khard.conf .config/khard/khard.conf
dotdotfiles/offlineimap/offlineimap.py .offlineimap.py
dotdotfiles/offlineimap/offlineimaprc .offlineimaprc
dotdotfiles/vdirsyncer/config .vdirsyncer/config
dotdotfiles/vdirsyncer/password.gpg .vdirsyncer/password.gpg
emacs/emacs.el .emacs.d/init.el
neovim/init.vim .config/nvim/init.vim
redshift/redshift .config/redshift/redshift.conf
screen/screenrc .screenrc
shells/bashrc .bashrc
shells/zshrc .zshrc
shells/fish/config.fish .config/fish/
shells/fish/functions .config/fish/
stumpwm/stumpwmrc .stumpwmrc
x/xinitrc .xinitrc
x/Xmodmap .Xmodmap
x/Xresources .Xresources