Files in this repository are my configuration files.
To install:
curl -sSf https://raw.githubusercontent.com/Galacsh/config/main/install.sh | bash -s
- Create "$HOME/.config" if doesn't exist:
if [[ ! -d "${HOME}/.config" ]]
mkdir "${HOME}/.config"
fi
- Change directory to
.config
.
cd "${HOME}/.config"
- Clean up
rm -rf .git .gitignore README.md alacritty ideavim install.sh nvim vim
- Load files with git.
git init
git remote add origin "${repository}"
git fetch
git reset "origin/${branch}"
git restore .
- Create link(symbolic) of
vim
directory at${HOME}/.vim
.
rm -rf "${HOME}/.vim"
ln -s "${HOME}/.config/vim" "${HOME}/.vim"
- Download alacritty theme.
./alacritty/init.sh
- Download tmux theme.
./tmux/init.sh
- Create link(symbolic) of
aliases.sh
file at${HOME}/.aliases
.
rm "${aliases_file}"
ln -s "${config_dir}/aliases.sh" "${aliases_file}"
Important
To use SSH:
git remote set-url origin "git@github.com:Galacsh/config.git"