1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2026-02-13 04:40:59 +01:00

create the circleci plugin

This commit is contained in:
Siddharth Agrawal
2022-10-18 16:54:26 +05:30
parent 5bce72ef57
commit a86e5876eb
3 changed files with 106 additions and 0 deletions

View 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
}