dotfiles/link.sh

19 lines
558 B
Bash
Raw Normal View History

2020-06-28 07:07:02 +03:00
#!/bin/sh
2020-07-01 10:43:10 +03:00
folders=($(ls $PWD/config))
2022-05-10 22:34:00 +03:00
files=("bashrc" "zshrc" "profile" "xbindkeysrc" "xprofile")
2020-06-28 07:07:02 +03:00
for folder in "${folders[@]}"; do
2020-07-01 10:43:10 +03:00
ln -sf $PWD/config/$folder $HOME/.config/
2020-06-28 07:07:02 +03:00
done
2020-06-30 01:55:42 +03:00
2020-07-01 10:43:10 +03:00
for file in "${files[@]}"; do
ln -sf $PWD/$file $HOME/.$file
done
# TODO Clean me up
mkdir -p $HOME/.config/zsh/{plugins,zprompts}
git clone https://github.com/xylous/gitstatus $HOME/Projects/gitstatus
ln -sf $HOME/Projects/gitstatus/gitstatus.plugin.zsh $HOME/.config/zsh/plugins/gitstatus.zsh
ln -sf $PWD/zprompts/bunni.zsh $HOME/.config/zsh/zprompts/prompt_bunni_setup