diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f034af3..0f5d426 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,6 +1,6 @@ # This is a basic workflow to help you get started with Actions -name: CI +name: ci # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the master branch @@ -27,20 +27,27 @@ jobs: shell: bash run: | if [[ "${{ matrix.os }}" == macos* ]]; then - brew install zsh fish + brew install zsh fish shellcheck elif [[ "${{ matrix.os }}" == ubuntu* ]]; then sudo apt-add-repository -y ppa:fish-shell/release-3 sudo apt -y update - sudo apt -y install zsh fish + sudo apt -y install zsh fish shellcheck fi - - name: Show version info + + - name: Show version run: | - bash --version - zsh --version - fish --version + bash --version; echo + zsh --version; echo + fish --version; echo + + - name: Shellcheck + run: shellcheck forgit.plugin.sh + - name: Test bash run: bash forgit.plugin.sh + - name: Test zsh run: zsh forgit.plugin.zsh + - name: Test fish run: fish forgit.plugin.fish diff --git a/README.md b/README.md index 7e68eff..84eba63 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@
-
+
diff --git a/forgit.plugin.zsh b/forgit.plugin.zsh
index 75e462f..f27b1e7 100755
--- a/forgit.plugin.zsh
+++ b/forgit.plugin.zsh
@@ -1,3 +1,4 @@
+#!/usr/bin/env bash
# MIT (c) Wenxuan Zhang
forgit::warn() { printf "%b[Warn]%b %s\n" '\e[0;33m' '\e[0m' "$@" >&2; }
forgit::info() { printf "%b[Info]%b %s\n" '\e[0;32m' '\e[0m' "$@" >&2; }