Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryoppy/cool-peco

peco utils. 便利なpecoを集約したい。
https://github.com/ryoppy/cool-peco

Last synced: 3 months ago
JSON representation

peco utils. 便利なpecoを集約したい。

Awesome Lists containing this project

README

        

# cool peco

[peco](https://github.com/peco/peco) utils.

## Functions

- cool-peco-filename-search
- cool-peco-ghq
- cool-peco-git-checkout
- cool-peco-git-log
- cool-peco-history
- cool-peco-ps
- cool-peco-ssh
- cool-peco-tmux-session
- cool-peco-aws-ec2-instances

![demo](./cool-peco-demo.gif)

## Install

```
CPDIR=~/
cd $CPDIR
git clone https://github.com/ryoppy/cool-peco.git
cd cool-peco
sh ./install.sh
```

and re-login.

## Usage

```
$ cool-peco-
```

## Alias

keybind or alias

add ~/.zshrc

```
bindkey '^r' cool-peco-history # ctrl+r
```

or

```
alias hist=cool-peco-history
```

## Setting examples

add ~/.zshrc

```
bindkey '^r' cool-peco-history # ctrl+r
bindkey '^h' cool-peco-ssh
bindkey '^p' cool-peco-ps

alias ff=cool-peco-filename-search
alias gbb=cool-peco-git-checkout
alias gll=cool-peco-git-log
alias ta=cool-peco-tmux-session
alias cg=cool-peco-ghq
```

## Add custom functions

If you wanna add new function, just add to `./customs` directory.

```
$ cp ./customs/cool-peco-custom-example ./customs/cool-peco-custom-new
```

and re-login.

```
$ cool-peco-custom-new
```

use alias?

```
bindkey '^e' cool-peco-custom-new # ctrl+e
# or
alias cn=cool-peco-custom-new
```

`./customs/*` is contains `.gitignore`.

## Why "cool" peco

"cool poco" is japanese comedian. ヾ(⌒(ノ'ω')ノ

![クールポコ](./cool-poco.jpg)