Skip to content

Commit

Permalink
Use alias for g command
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiya-kume committed Jan 4, 2025
1 parent b2fbe4f commit e30581e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions config/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,7 @@ setopt share_history
SAVEHIST=10000
HISTSIZE=10000

g() {
local repo=$(ghq list | peco)
if [[ -n "$repo" ]]; then
cd $(ghq root)/$repo
fi
}

alias g='cd $(ghq list | peco | xargs -I {} echo $(ghq root)/{})'
alias gb='git switch -m $(git branch -a | grep -v -e "->" -e "*" | perl -pe "s/^\h+//g" | while read -r line; do echo ${line#remotes/origin/}; done | uniq | peco)'
alias cl='clear'
alias ts='tig status'
Expand Down

0 comments on commit e30581e

Please sign in to comment.