Skip to content

Commit

Permalink
added history alias
Browse files Browse the repository at this point in the history
  • Loading branch information
jessp01 committed Nov 1, 2023
1 parent 81ce4e7 commit 3807a5e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 28 deletions.
57 changes: 29 additions & 28 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

# For more information see:
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
---
name: Go

on: [push, pull_request]
Expand All @@ -14,31 +15,31 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'

- name: Build
run: go build -v
- name: Test
env:
TERM: term-256color
run: |
set -e
sudo apt-get -qq update && sudo apt-get install -y libtesseract-dev libleptonica-dev tesseract-ocr-eng golang-go
go install github.com/go-critic/go-critic/cmd/gocritic@latest
go install golang.org/x/tools/cmd/goimports@latest
go install golang.org/x/lint/golint@latest
go install github.com/gordonklaus/ineffassign@latest
echo $TERM
pip install pre-commit
pre-commit install
pre-commit run --all-files
go test -v
sudo ./install_zaje.sh
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'

- name: Build
run: go build -v
- name: Test
env:
TERM: term-256color
run: |
set -e
sudo apt-get -qq update && sudo apt-get install -y libtesseract-dev libleptonica-dev tesseract-ocr-eng golang-go
go install github.com/go-critic/go-critic/cmd/gocritic@latest
go install golang.org/x/tools/cmd/goimports@latest
go install golang.org/x/lint/golint@latest
go install github.com/gordonklaus/ineffassign@latest
echo $TERM
pip install pre-commit
pre-commit install
pre-commit run --all-files
go test -v
sudo ./install_zaje.sh
#- name: Test
#run: go test -v
#run: go test -v
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
repos:
- repo: /~https://github.com/jessp01/pre-commit-golang.git
rev: v0.5.9
Expand Down
2 changes: 2 additions & 0 deletions utils/functions.rc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ if command -v zaje > /dev/null 2>&1 ; then

# alias cat=zaje

alias history='history |zaje -d -l history'

tail()
{
BIN="tail"
Expand Down

0 comments on commit 3807a5e

Please sign in to comment.