Skip to content

Commit

Permalink
Update jj
Browse files Browse the repository at this point in the history
  • Loading branch information
oyoshot committed Jun 30, 2024
1 parent a1e0368 commit 3a9c795
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dot_config/zsh/defer.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ function j() {
}

function jj() {
local repository=$(ghq list --full-path --vcs git | fzf-tmux -p 90%,90% --preview-window="right,35%" --preview="git --git-dir {}/.git log --color=always")
[ -n "$repository" ] && builtin cd "$repository"
local root=$(ghq root)
local r=$(ghq list | fzf-tmux -p 90%,90% --preview-window="right,40%" --preview="git --git-dir '$root/{}/.git' log --color=always")
local repository="$root/$r"
[ -n "$repository" ] && builtin cd "$repository"
}

function awsc() {
Expand Down

0 comments on commit 3a9c795

Please sign in to comment.