mirror of
https://codeberg.org/vlw/dotfiles.git
synced 2026-01-11 21:36:00 +01:00
fix(bash): dotfiles install script with make (#88)
Reviewed-on: https://codeberg.org/vlw/dotfiles/pulls/88
This commit is contained in:
parent
82cd2c6423
commit
8ecab0adac
3 changed files with 8 additions and 6 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -14,6 +14,8 @@
|
|||
!.bash_aliases
|
||||
!.bash_profile
|
||||
!.local/bin/
|
||||
!.local/bin/scripts/
|
||||
!.local/bin/scripts/install_dotfiles.sh
|
||||
!.local/bin/git-hooks/
|
||||
!.local/bin/git-hooks/pre-commit
|
||||
!.local/bin/code_server_export_extensions
|
||||
|
|
|
|||
5
.local/bin/scripts/install_dotfiles.sh
Executable file
5
.local/bin/scripts/install_dotfiles.sh
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
cp -rp . $HOME
|
||||
cd ..
|
||||
rm -r dotfiles
|
||||
7
Makefile
7
Makefile
|
|
@ -2,12 +2,7 @@ install: dotfiles git-hooks
|
|||
|
||||
# Install dotfiles in users home directory
|
||||
dotfiles:
|
||||
@if [ -d dotfiles ]; then \
|
||||
cp -r ./dotfiles/. $HOME \
|
||||
rm -rf dotfiles \
|
||||
else \
|
||||
echo "Dotfiles already installed or folder is missing"; \
|
||||
fi
|
||||
./.local/bin/scripts/install_dotfiles.sh
|
||||
|
||||
# Use tracked git hooks
|
||||
git-hooks:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue