diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-19 20:58:10 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-19 20:58:10 +0200 |
| commit | 29bcfc5a747de14414fdbad6a4563d0126253ef5 (patch) | |
| tree | 5a9a55d5e878cf91c4f4f4f1a814d339a66c9e89 | |
| parent | 2eda2819038743c17a47466b11f711620f451553 (diff) | |
Update
| -rw-r--r-- | fish/conf.d/tmux.fish | 6 |
1 files 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 |
