From 685059322fffff7c2ab9304d3065fe83260a1725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Wed, 31 Jul 2024 18:36:27 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(fish):=20repos=20?= =?UTF-8?q?function=20now=20creates=20a=20new=20session=20when=20inside=20?= =?UTF-8?q?of=20tmux=20instead=20of=20changing=20the=20name=20to=20the=20c?= =?UTF-8?q?urrent=20one?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/fish/functions/repos.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/fish/functions/repos.fish b/.config/fish/functions/repos.fish index b6af7538..83ff456c 100644 --- a/.config/fish/functions/repos.fish +++ b/.config/fish/functions/repos.fish @@ -8,7 +8,7 @@ function repos --description 'Open Git directories in ~/Repos with fzf in a new if type -q tmux if set -q TMUX - set new_tab_cmd "tmux rename-session \"$tab_title\"; and cd $selected_dir; and $gfetch; and l" + set new_tab_cmd "tmux new-session -ds \"$tab_title\" -c \"$selected_dir\"; and tmux switch-client -t \"$tab_title\"" else set new_tab_cmd "tmux new-session -s \"$tab_title\" -c \"$selected_dir\"" end