Skip to content

Commit

Permalink
tmux: search in correct directory
Browse files Browse the repository at this point in the history
  • Loading branch information
FredeHoey committed Jan 30, 2024
1 parent 7e51620 commit 4aa8193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/tmux-project/tmux-project
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ search_dir=~/git/
if [[ $# -eq 1 ]]; then
selected=$1
else
selected=$(find ~/git -maxdepth 3 -type d -regextype grep -regex ".*/.\(git\|hg\|repo\)" \
selected=$(find $search_dir -maxdepth 3 -regextype grep -regex ".*/.\(git\|hg\|repo\)" \
| xargs dirname \
| fzf-tmux -p --no-preview --bind "ctrl-g:beginning-of-line+put($search_dir)+print-query")
fi
Expand Down

0 comments on commit 4aa8193

Please sign in to comment.