#!/bin/sh
|
|
|
|
DOTFILES_DIR="${HOME}/Software/dotfiles"
|
|
|
|
declare -a FILES=(
|
|
.bash_profile
|
|
.bashrc
|
|
.inputrc
|
|
.iterm2_shell_integration.bash
|
|
.xinitrc
|
|
.config/aliasrc
|
|
.config/nvim/init.lua
|
|
.config/nvim/lua/general/remaps.lua
|
|
.config/nvim/lua/general/options.lua
|
|
.config/nvim/lua/general/autocmd.lua
|
|
.config/nvim/lua/helper/toggle-tab-width.lua
|
|
.config/nvim/plugin
|
|
.config/nvim/lua/packer-plugins.lua
|
|
.config/nvim/coc-settings.json
|
|
.config/lf/
|
|
.dwm/autostart.sh
|
|
.dwm/dwm-sss
|
|
.local/bin/
|
|
.zsh/
|
|
.zshrc
|
|
)
|
|
|
|
for F in ${FILES[@]}; do
|
|
FILE="${HOME}/$F"
|
|
if [[ ! -f $FILE && ! -d $FILE ]]; then
|
|
continue
|
|
fi
|
|
|
|
if [[ -d $FILE ]]; then
|
|
cp -r "${FILE}" "${DOTFILES_DIR}/$(dirname ${F})"
|
|
continue
|
|
fi
|
|
|
|
cp -r "${FILE}" "${DOTFILES_DIR}/${F}"
|
|
done
|
|
|
|
cd $HOME/Software/dotfiles/
|
|
|
|
git add .
|
|
git commit -m "$(date)"
|
|
git push origin $(git rev-parse --abbrev-ref HEAD)
|