git-project-manager/contrib/gpm_func_omz.zsh

34 lines
579 B
Bash
Raw Normal View History

2023-12-10 16:53:59 +00:00
# Completion
2024-12-27 22:48:21 +00:00
source <(git-project-manager completion zsh)
2023-12-10 16:53:59 +00:00
2024-12-27 22:48:21 +00:00
alias gpm="git-project-manager"
2023-12-10 16:53:59 +00:00
2023-12-10 04:45:30 +00:00
# Go to a project, specify a fzf filter or filter
# through them all
pgo () {
2024-12-27 22:48:21 +00:00
project=` git-project-manager project cd $1 `
2023-12-10 04:45:30 +00:00
if [ $? -eq 0 ]; then
cd $project
fi
}
# Add a new project to your local projects path
padd () {
2024-12-27 22:48:21 +00:00
git-project-manager project add
2023-12-10 04:45:30 +00:00
}
plist () {
2024-12-27 22:48:21 +00:00
git-project-manager alias list
2023-12-10 04:45:30 +00:00
}
pshow () {
2024-12-27 22:48:21 +00:00
git-project-manager project show --current
}
2023-12-12 21:30:33 +00:00
popen () {
2024-12-27 22:48:21 +00:00
git-project-manager project open $1
2023-12-13 18:28:07 +00:00
reset 2>&1 > /dev/null
2023-12-12 21:30:33 +00:00
}
2023-12-29 18:35:56 +00:00
2024-12-27 22:48:21 +00:00
alias prun="git-project-manager project run"