From 49e16608e06886a90ed8f9a56ec060001191023c Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Tue, 9 Jul 2024 16:09:52 -0500 Subject: [PATCH] feat: zshr tmux helper --- nix/base-system/.zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nix/base-system/.zshrc b/nix/base-system/.zshrc index 2ac1635..ffcaf44 100644 --- a/nix/base-system/.zshrc +++ b/nix/base-system/.zshrc @@ -20,3 +20,9 @@ function service_restart() { function root_shell() { sudo -E zsh -i /etc/zshrc } + +function wrkspc() { + local wd=$(pwd) + local session=$(basename $wd) + tmux new -A -s $session +}