Hiya! I'd like to create a custom bash function th...
# how-do-i
r
Hiya! I'd like to create a custom bash function that uses the output from the Graphite interactive branch picker i.e.
gt co
. Specifically, I'm trying to create a
gt wt
function that will trigger the interactive branch picker, and then set up a worktree with the selected branch instead of checking it out. Is there any way to accomplish this?
p
(If applicable) To help us more clearly understand what you're trying to do, please provide additional details about: - Screenshots / debug logs / list of commands you've tried to run so far - Your workflow - Current state
hey Rishabh, I imagine this would be dependent on the particular terminal but I'm not familiar with a way to pipe the output of the interactive picker
r
ah that's unfortunate — thanks for the info!