Files
shell-config/makefile
T

44 lines
1.2 KiB
Makefile
Raw Normal View History

2025-10-19 11:43:52 +02:00
2026-05-11 14:52:42 +02:00
.PHONY: default help print-help
.PHONY: instal-bash-config instal-zsh-config instal-bash instal-zsh instal-all
.PHONY: getmycode code-bash code-zsh
2025-10-19 11:43:52 +02:00
default : print-help
help : print-help
2026-05-11 14:52:42 +02:00
install: instal
instal : instal-all
instal-bash: instal-bash-config
instal-zsh: instal-zsh-packages, instal-zsh-config
instal-all : instal-bash, instal-zsh
2025-12-28 23:29:52 +01:00
getmycode : code-bash, code-zsh
2025-10-19 11:43:52 +02:00
print-help :
@echo -e "Help!?!?"
@echo -e "Use 'make instal' to instal this config and required packages"
@echo -e "Use 'make instal-config' to only copy the configuration files"
@echo -e "Use 'make instal-packaged' to instal packages: zsh, easy-zsh-config, oh-my-posh"
2025-12-28 23:29:52 +01:00
@echo -e "Use 'make getmycode' to get configuration-code from your config to this project"
2025-10-19 11:43:52 +02:00
2025-12-08 21:56:28 +01:00
instal-bash-config :
@echo -e "Installing bash config to $$HOME"
2025-10-19 11:43:52 +02:00
cp ./.bashrc ~/
2026-05-11 14:52:42 +02:00
cp ./.bash_profile ~/
cp ./.bash_config ~/
2025-10-19 11:43:52 +02:00
2025-12-08 21:56:28 +01:00
instal-zsh-config :
@echo -e "Installing zsh config to $$HOME"
cp ./.zshrc ~/
2026-05-11 14:52:42 +02:00
instal-zsh-packages :
2025-10-19 11:43:52 +02:00
sudo pacman -S --needed zsh #zsh shell environment
2025-12-08 21:56:28 +01:00
code-bash :
@echo -e "Getting bash config from $$HOME"
2025-10-19 11:43:52 +02:00
cp ~/.bashrc ./
2026-05-11 14:52:42 +02:00
cp ~/.bash_profile ./
cp ~/.bash_config ./
2025-12-08 21:56:28 +01:00
code-zsh :
@echo -e "Getting zsh config from $$HOME"
cp ~/.zshrc ./