shell/install/dots

27 lines
639 B
Plaintext
Raw Normal View History

2022-10-08 04:37:00 +00:00
#!/bin/bash
##makedesc: Install dotfiles
echo
echo "==============================================="
echo "Installing dotfiles..."
echo "==============================================="
echo
install_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
dotfiles_src_dir="`dirname $install_dir`/dotfiles"
postfix=".bak-`date '+%Y%m%d%H%M'`"
install() {
echo "mv "$HOME/$1" "$HOME/$1$postfix""
echo "cp "$dotfiles_src_dir/$1" "$HOME/$1""
echo "- $1"
}
install .bash_aliases
install .profile
2022-11-20 13:38:49 +00:00
install .bashrc
2022-10-08 04:37:00 +00:00
install .gitconfig
install .gitignore
install .git_aliases
2022-11-20 13:38:49 +00:00
ln -s "$HOME/.profile" "$HOME/.zprofile"