Dotfiles installer
This commit is contained in:
parent
4637b069f9
commit
bc9eb794a8
6
Makefile
6
Makefile
@ -1,4 +1,4 @@
|
|||||||
# Autogenerated at 05.10.2022 11:23 using ./gen-makefile
|
# Autogenerated at 08.10.2022 12:36 using ./gen-makefile
|
||||||
.DEFAULT_GOAL := help
|
.DEFAULT_GOAL := help
|
||||||
|
|
||||||
#===============================================
|
#===============================================
|
||||||
@ -50,6 +50,10 @@ composer-clean:
|
|||||||
docker:
|
docker:
|
||||||
@./install/docker
|
@./install/docker
|
||||||
|
|
||||||
|
# Install dotfiles
|
||||||
|
dots:
|
||||||
|
@./install/dots
|
||||||
|
|
||||||
# Install droidcam v1.8.2
|
# Install droidcam v1.8.2
|
||||||
droidcam:
|
droidcam:
|
||||||
@./install/droidcam
|
@./install/droidcam
|
||||||
|
24
install/dots
Executable file
24
install/dots
Executable file
@ -0,0 +1,24 @@
|
|||||||
|
#!/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
|
||||||
|
install .gitconfig
|
||||||
|
install .gitignore
|
||||||
|
install .git_aliases
|
Loading…
Reference in New Issue
Block a user