Skip to content

Commit

Permalink
Fresh start
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Terhar committed Jan 31, 2022
0 parents commit 06d0d47
Show file tree
Hide file tree
Showing 107 changed files with 24,333 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .bashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# .bashrc

if [ -f /etc/profile ]; then
. /etc/profile
fi

case "$(uname)" in
Linux | CYGWIN*)
alias ls='ls --color=auto'
;;
Darwin)
alias ls='ls -G'
;;
esac

alias ll='ls -la'

if [ -z $CODER_ASSETS_ROOT ]; then
alias code="$CODER_ASSETS_ROOT/code-server/bin/code-server"
fi

export EDITOR=vim

if ! which __git_ps1 2>&1 /dev/null; then
alias __git_ps1=true
fi

PS1='\[\e[36m\]`__git_ps1` \[\e[1;34m\]\w\[\e[0m\] $ '

if [ -f "$HOME/.bashrc.local" ]; then
. "$HOME/.bashrc.local"
fi
Binary file added .fonts/CascadiaCode.ttf
Binary file not shown.
1 change: 1 addition & 0 deletions .fzf/.github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
custom: ["https://paypal.me/junegunn", "https://www.buymeacoffee.com/junegunn"]
22 changes: 22 additions & 0 deletions .fzf/.github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!-- ISSUES NOT FOLLOWING THIS TEMPLATE WILL BE CLOSED AND DELETED -->

<!-- Check all that apply [x] -->

- [ ] I have read through the manual page (`man fzf`)
- [ ] I have the latest version of fzf
- [ ] I have searched through the existing issues

## Info

- OS
- [ ] Linux
- [ ] Mac OS X
- [ ] Windows
- [ ] Etc.
- Shell
- [ ] bash
- [ ] zsh
- [ ] fish

## Problem / Steps to reproduce

36 changes: 36 additions & 0 deletions .fzf/.github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning
name: CodeQL

on:
push:
branches: [ master, devel ]
pull_request:
branches: [ master ]

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: ['go']

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
44 changes: 44 additions & 0 deletions .fzf/.github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
name: Test fzf on Linux

on:
push:
branches: [ master, devel ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [1.14, 1.15]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}

- name: Setup Ruby
uses: ruby/setup-ruby@v1.62.0
with:
ruby-version: 3.0.0

- name: Install packages
run: sudo apt-get install --yes zsh fish tmux

- name: Install Ruby gems
run: sudo gem install --no-document minitest:5.14.2 rubocop:1.0.0 rubocop-minitest:0.10.1 rubocop-performance:1.8.1

- name: Rubocop
run: rubocop --require rubocop-minitest --require rubocop-performance

- name: Unit test
run: make test

- name: Integration test
run: make install && ./install --all && LC_ALL=C tmux new-session -d && ruby test/test_go.rb --verbose
44 changes: 44 additions & 0 deletions .fzf/.github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
name: Test fzf on macOS

on:
push:
branches: [ master, devel ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: macos-latest
strategy:
matrix:
go: [1.14, 1.15]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}

- name: Setup Ruby
uses: ruby/setup-ruby@v1.62.0
with:
ruby-version: 3.0.0

- name: Install packages
run: HOMEBREW_NO_INSTALL_CLEANUP=1 brew install fish zsh tmux

- name: Install Ruby gems
run: gem install --no-document minitest:5.14.2 rubocop:1.0.0 rubocop-minitest:0.10.1 rubocop-performance:1.8.1

- name: Rubocop
run: rubocop --require rubocop-minitest --require rubocop-performance

- name: Unit test
run: make test

- name: Integration test
run: make install && ./install --all && LC_ALL=C tmux new-session -d && ruby test/test_go.rb --verbose
12 changes: 12 additions & 0 deletions .fzf/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
bin/fzf.exe
dist
target
pkg
Gemfile.lock
.DS_Store
doc/tags
vendor
gopath
*.zwc
tmp
*.patch
84 changes: 84 additions & 0 deletions .fzf/.goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
---
project_name: fzf

before:
hooks:
- go mod download

builds:
- id: fzf-macos
binary: fzf
goos:
- darwin
goarch:
- amd64
- arm64
ldflags:
- "-s -w -X main.version={{ .Version }} -X main.revision={{ .ShortCommit }}"
hooks:
post: |-
sh -c '
cat > /tmp/fzf-gon.hcl << EOF
source = ["./dist/fzf-macos_darwin_{{ .Arch }}/fzf"]
bundle_id = "kr.junegunn.fzf"
apple_id {
username = "junegunn.c@gmail.com"
password = "@env:AC_PASSWORD"
}
sign {
application_identity = "Apple Development: junegunn.c@gmail.com"
}
EOF
gon /tmp/fzf-gon.hcl
'
- goos:
- linux
- windows
- freebsd
- openbsd
goarch:
- amd64
- arm
- arm64
goarm:
- 5
- 6
- 7
ldflags:
- "-s -w -X main.version={{ .Version }} -X main.revision={{ .ShortCommit }}"
ignore:
- goos: freebsd
goarch: arm
- goos: openbsd
goarch: arm
- goos: freebsd
goarch: arm64
- goos: openbsd
goarch: arm64

archives:
- name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- non-existent*

release:
github:
owner: junegunn
name: fzf
prerelease: auto
name_template: '{{ .Tag }}'

snapshot:
name_template: "{{ .Tag }}-devel"

changelog:
sort: asc
filters:
exclude:
- README
- test
28 changes: 28 additions & 0 deletions .fzf/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Layout/LineLength:
Enabled: false
Metrics:
Enabled: false
Lint/ShadowingOuterLocalVariable:
Enabled: false
Style/MethodCallWithArgsParentheses:
Enabled: true
IgnoredMethods:
- assert
- exit
- paste
- puts
- raise
- refute
- require
- send_keys
IgnoredPatterns:
- ^assert_
- ^refute_
Style/NumericPredicate:
Enabled: false
Style/StringConcatenation:
Enabled: false
Style/OptionalBooleanParameter:
Enabled: false
Style/WordArray:
MinSize: 1
49 changes: 49 additions & 0 deletions .fzf/BUILD.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
Building fzf
============

Build instructions
------------------

### Prerequisites

- Go 1.13 or above

### Using Makefile

```sh
# Build fzf binary for your platform in target
make

# Build fzf binary and copy it to bin directory
make install

# Build fzf binaries and archives for all platforms using goreleaser
make build

# Publish GitHub release
make release
```

> :warning: Makefile uses git commands to determine the version and the
> revision information for `fzf --version`. So if you're building fzf from an
> environment where its git information is not available, you have to manually
> set `$FZF_VERSION` and `$FZF_REVISION`.
>
> e.g. `FZF_VERSION=0.24.0 FZF_REVISION=tarball make`
Third-party libraries used
--------------------------

- [mattn/go-runewidth](https://github.com/mattn/go-runewidth)
- Licensed under [MIT](http://mattn.mit-license.org)
- [mattn/go-shellwords](https://github.com/mattn/go-shellwords)
- Licensed under [MIT](http://mattn.mit-license.org)
- [mattn/go-isatty](https://github.com/mattn/go-isatty)
- Licensed under [MIT](http://mattn.mit-license.org)
- [tcell](https://github.com/gdamore/tcell)
- Licensed under [Apache License 2.0](https://github.com/gdamore/tcell/blob/master/LICENSE)

License
-------

[MIT](LICENSE)
Loading

0 comments on commit 06d0d47

Please sign in to comment.