From 29bcfc5a747de14414fdbad6a4563d0126253ef5 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 19 Mar 2026 20:58:10 +0200 Subject: Update --- fish/conf.d/tmux.fish | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fish/conf.d/tmux.fish b/fish/conf.d/tmux.fish index 90cbf47..e336c88 100644 --- a/fish/conf.d/tmux.fish +++ b/fish/conf.d/tmux.fish @@ -28,16 +28,18 @@ function tmux::new end function tmux::project + set -l filter + if test (count $argv) -eq 0 set -l git_root (basename (git rev-parse --show-toplevel 2>/dev/null)) if test -n "$git_root" tmux::attach (basename $git_root) return else - set -l filter . + set filter . end else - set -l filter $argv[1] + set filter $argv[1] end set -l git_dir ~/git -- cgit v1.2.3