Initial Commit
This commit is contained in:
22
setup
Executable file
22
setup
Executable file
@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
sed -i -e 's/\r$//' ~/.dotfiles/*
|
||||
|
||||
(
|
||||
for config in $PWD/.gitconfig.d/*.gitconfig; do
|
||||
echo "[include]"
|
||||
echo " path = $config"
|
||||
done;
|
||||
) > "$HOME/.gitconfig"
|
||||
|
||||
|
||||
ln -sf "$PWD/.zshrc" "$HOME/.zshrc"
|
||||
ln -sf "$PWD/.p10k.zsh" "$HOME/.p10k.zsh"
|
||||
ln -sf "$PWD/.config" "$HOME/.config"
|
||||
ln -sf "$PWD/.alias.d" "$HOME/.alias.d"
|
||||
ln -sf "$PWD/.profile" "$HOME/.profile"
|
||||
|
||||
if [ ! -f "$PWD/.zshenv" ]; then
|
||||
cp "$PWD/.zshenv.template" "$PWD/.zshenv"
|
||||
fi
|
||||
|
||||
ln -sf "$PWD/.zshenv" "$HOME/.zshenv"
|
Reference in New Issue
Block a user