Skip to content
/ work Public

Convenient wrapper over git-worktree, using fzf for switching between trees and branches.

Notifications You must be signed in to change notification settings

3rd/work

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

work

Simple utility to work on multiple things at the same time, powered by git-worktree and fzf.


work is a convenient wrapper over git-worktree.

Extra dependencies:

  • fzf
  • ripgrep

Usage

Usage:
  work                   interactive switcher, prints tree path
  work i, init           prepare cwd for work
  work ls, list          list work trees
  work new <name>        create new work tree and switch to it
  work b, branch [name]  switch current work tree to branch
                         if name is provided, switch to branch or create it
                         if name is not provided, select branch interactively
  work help              print usage

Shell wrapping

You need to create a function in your shell that will cd based on work's output.

Fish shell:

  • Edit work.fish and replace the path to the work script.
  • Add work.fish to your fish functions directory.

About

Convenient wrapper over git-worktree, using fzf for switching between trees and branches.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages