Rename folder

This commit is contained in:
Marco Thomas
2020-09-09 22:56:56 +02:00
parent 35e7a89ade
commit 84372f4c4a
328 changed files with 1 additions and 1 deletions

31
laptop/linkdots.sh Executable file
View File

@@ -0,0 +1,31 @@
#!/bin/sh
VERBOSE=$1
# Make sure the paths are correct
path=$(pwd)
# Scripts
rm -rf $HOME/scripts
ln -sf $path/scripts $HOME/scripts
# Home directory
home_files=".dir_colors .gitconfig .tmux.conf .vimrc .Xresources .zshrc .zsh_highlighting"
for file in $home_files
do
ln -sf $path/$file $HOME/$file
if [ "$VERBOSE" = "-v" ]; then
echo "Linked from $path/$file to $HOME/$file"
fi
done
# .config directory
conf_files="alacritty dunst i3 nvim picom.conf polybar ranger rofi"
for file in $conf_files
do
rm -rf $HOME/.config/$file
ln -sf $path/.config/$file $HOME/.config/$file
if [ "$VERBOSE" = "-v" ]; then
echo "Linked from $path/.config/$file to $HOME/.config/$file"
fi
done