Skip to content

Instantly share code, notes, and snippets.

@serenevoid
Last active September 25, 2023 09:25
Show Gist options
  • Save serenevoid/13239752cfa41a75a69446b7beb26d7a to your computer and use it in GitHub Desktop.
Save serenevoid/13239752cfa41a75a69446b7beb26d7a to your computer and use it in GitHub Desktop.
FZF Folder Specific Directory Jumping

FZF Folder Specific Directory Jumping

Bash

Add this to the bash config.

alias jj='clear && cd "$(find ~/dev/projects ~/dev/linux-tools ~/.config -mindepth 1 -maxdepth 1 -type d | fzf)"'

Powershell

Add this to powershell config.

function jj { sh.exe dir_list | Set-Location }

And add this in a bash script which is added to path.

find ~/dev/projects ~/dev/linux-tools ~/.config -mindepth 1 -maxdepth 1 -type d | fzf | sed 's/c\///'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment