From 7d9716109cc369e58c21a9daf9409b43d4ceb77a Mon Sep 17 00:00:00 2001 From: Raphael Date: Sat, 27 Sep 2025 00:06:11 +0200 Subject: [PATCH] core(make/tmux): Adding tmux rules - Using tmux for developpement propose --- Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e1b5995..87a1129 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: rparodi +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2025/09/18 17:28:18 by rparodi #+# #+# # -# Updated: 2025/09/19 16:07:44 by rparodi ### ########.fr # +# Updated: 2025/09/27 00:04:52 by rparodi ### ########.fr # # # # **************************************************************************** # @@ -14,6 +14,7 @@ # Name NAME = libftprintf.a +PROJECT = printf # Commands CC ?= clang @@ -114,6 +115,16 @@ footer: @printf "$(GOLD) '\"' '\"'$(END)\n" @printf ' $(GREY)The compilation is$(END) $(GOLD)finished$(END)\n $(GREY)Have a good $(END)$(GOLD)correction !$(END)\n' +tmux: + @tmux new-session -d -s $(PROJECT) + @tmux send-keys -t $(PROJECT):0 'vim' C-m + @tmux split-window -h -t $(PROJECT):0 + @tmux resize-pane -t $(PROJECT):0.0 -x 70 + @tmux new-window -t $(PROJECT):1 -n 'lazygit' + @tmux send-keys -t $(PROJECT):1 'lazygit' C-m + @tmux select-window -t $(PROJECT):0 + @tmux attach-session -t $(PROJECT) + clangd: @printf "CompileFlags:\n" > ./.clangd @printf " Add:\n" >> ./.clangd