dotfiles/link.sh

31 lines
1 KiB
Bash
Executable file

#!/bin/sh
folders=($(ls $PWD/config))
files=("bashrc" "zshrc" "profile" "xbindkeysrc" "xprofile")
projdir="$HOME/Projects"
localdir="$HOME/.local/share"
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://code.criminallycute.fi/siina/gitstatus $localdir/gitstatus
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
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
# Pipewire rnnoise stuff
rnnver="v1.10"
cd $HOME/.local/share
curl -LO https://github.com/werman/noise-suppression-for-voice/releases/download/$rnnver/linux-rnnoise.zip -o /tmp/rnn/linux-rnnoise.zip
unzip linux-rnnoise.zip
rm linux-rnnoise.zip