mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
create the circleci plugin
This commit is contained in:
parent
5bce72ef57
commit
a86e5876eb
3 changed files with 106 additions and 0 deletions
12
plugins/circleci/circleci.plugin.zsh
Normal file
12
plugins/circleci/circleci.plugin.zsh
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# Handle $0 according to the standard:
|
||||
# https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html
|
||||
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
|
||||
0="${${(M)0:#/*}:-$PWD/$0}"
|
||||
__CI_ZSH_DIR="${0:h:A}"
|
||||
|
||||
alias cis='circleci_status'
|
||||
|
||||
|
||||
function circleci_status() {
|
||||
python3 "$__CI_ZSH_DIR"/circleci_status.py "$(git_current_branch)" "$(git_repo_name)" | less
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue