update make file
This commit is contained in:
13
Makefile
13
Makefile
@@ -1,4 +1,4 @@
|
||||
.PHONY: zsh
|
||||
.PHONY: zsh update-zsh tmux update-tmux
|
||||
|
||||
zsh:
|
||||
@for file in zsh/.[!.]*; do \
|
||||
@@ -15,10 +15,13 @@ update-zsh:
|
||||
done && echo "zsh files updated from home directory" || echo "zsh files not updated from home directory"
|
||||
|
||||
tmux:
|
||||
@for file in tmux/.[!.]*; do \
|
||||
file=$${file#tmux/}; \
|
||||
[ -f "$$HOME/$$file" ] && mv "$$HOME/$$file" "$$HOME/$$file.bak"; \
|
||||
done && cp -r tmux/.[!.]* ~/ && echo "tmux files copied to home directory" || echo "tmux files not copied to home directory"
|
||||
@if [ -f "$$HOME/.tmux.conf" ]; then \
|
||||
mv "$$HOME/.tmux.conf" "$$HOME/.tmux.conf.bak"; \
|
||||
cp tmux/.tmux.conf "$$HOME/.tmux.conf"; \
|
||||
echo ".tmux.conf copied to home directory"; \
|
||||
else \
|
||||
echo ".tmux.conf not found in home directory"; \
|
||||
fi
|
||||
|
||||
update-tmux:
|
||||
@if [ -f "$$HOME/.tmux.conf" ]; then \
|
||||
|
||||
Reference in New Issue
Block a user