Skip to content

Commit

Permalink
refactor(alias): Reverse order of fzf
Browse files Browse the repository at this point in the history
That makes the appearance clean for up to down terminal.
  • Loading branch information
5ouma committed May 21, 2024
1 parent a34b73c commit e1c043f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/zsh/.config/zsh/extra/alias.zsh
Expand Up @@ -15,7 +15,7 @@ alias gg='ghq get -p'
alias gup='ghq list | ghq get --update --parallel'

gcd() {
declare -r repo="$(ghq list | fzf --height=70% --preview="find $(ghq root)/{} -name README.md -maxdepth 2 | xargs glow --style=auto")"
declare -r repo="$(ghq list | fzf --reverse --height=70% --preview="find $(ghq root)/{} -name README.md -maxdepth 2 | xargs glow --style=auto")"
[ -n "$repo" ] && cd "$(ghq list --full-path --exact "$repo")" || return
}

Expand Down Expand Up @@ -162,7 +162,7 @@ alias yzi='yazi'

# zoxide
zcd() {
declare -r dir="$(zoxide query -l | fzf --height=70% --preview="lsd -Alg {}")"
declare -r dir="$(zoxide query -l | fzf --reverse --height=70% --preview="lsd -Alg {}")"
[ -n "$dir" ] && cd "$dir" || return
}

Expand Down

0 comments on commit e1c043f

Please sign in to comment.