dotfiles/link.sh

24 lines
797 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")
2023-07-15 01:50:25 +03:00
projdir="$HOME/Projects"
2023-04-28 18:31:09 +03:00
localdir="$HOME/.local/share"
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}
2023-04-28 18:37:20 +03:00
git clone https://code.criminallycute.fi/siina/gitstatus $localdir/gitstatus
2023-04-28 18:31:09 +03:00
ln -sf $HOME/.local/share/gitstatus/gitstatus.plugin.zsh $HOME/.config/zsh/plugins/gitstatus.zsh
ln -sf $PWD/zprompts/bunni.zsh $HOME/.config/zsh/zprompts/prompt_bunni_setup
2023-01-17 12:25:23 +02:00
2023-04-28 18:31:09 +03:00
git clone https://gitlab.com/code-stats/code-stats-zsh $localdir/code-stats-zsh
ln -sf $localdir/code-stats-zsh/codestats.plugin.zsh $HOME/.config/zsh/plugins/codestats.zsh