dotfiles/link.sh
2023-01-17 12:25:23 +02:00

22 lines
742 B
Bash
Executable File

#!/bin/sh
folders=($(ls $PWD/config))
files=("bashrc" "zshrc" "profile" "xbindkeysrc" "xprofile")
for folder in "${folders[@]}"; do
ln -sf $PWD/config/$folder $HOME/.config/
done
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
git clone https://gitlab.com/code-stats/code-stats-zsh $HOME/Projects/code-stats-zsh
ln -sf $HOME/Projects/code-stats-zsh/codestats.plugin.zsh $HOME/.config/zsh/plugins/codestats.zsh