dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README

commit 814d716bf63d18e0b7e1d578bb5ccb85a6be9792
parent c6d66d16a5e4f04ca3991af42952e63b0f73d5df
Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe>
Date:   Wed, 29 May 2024 21:31:05 -0500

Added ~/.local/bin/lc for leetcode

Diffstat:
A.local/bin/lc | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/.local/bin/lc b/.local/bin/lc @@ -0,0 +1,12 @@ +cd ~/dox/dev/leetcode +if ! tmux has-session -t lc 2>/dev/null; then + tmux new-session -s lc -n main -d 'bash --rcfile <(cat ~/.bashrc activate)' + + tmux new-window -t lc:1 -n activate -d + tmux send-keys -t lc:1.0 'vim activate' C-m + + tmux new-window -t lc:2 -n bin/lc -d + tmux send-keys -t lc:2.0 'vim ~/.local/bin/lc' C-m +fi + +tmux attach -t lc