Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

if which peco &> /dev/null; then
function peco_select_history() {
BUFFER=$(fc -l -n -r 1 | \
peco --layout=bottom-up --query "$LBUFFER")
CURSOR=$#BUFFER # move cursor
zle -R -c # refresh
}
zle -N peco_select_history
bindkey '^R' peco_select_history
@mollifier
mollifier / wip-pr
Last active August 29, 2015 14:00 — forked from bouzuya/wip-pr
#!/bin/bash
# Description:
# Backlog + git-flow + WIP PR script
# Usage:
# wip-pr pj-123
#
# Requirement:
# use Mac OS X
// ==UserScript==
// @name twitter-average-length2
// @namespace http://www.hatena.ne.jp/mollifier
// @include http://twitter.com/*
// @include https://twitter.com/*
// ==/UserScript==
// Fork of twitter-average-length.user.js (http://gist.github.com/402749)
// original author is hitode909 (http://gist.github.com/hitode909)
// 日付文字列のパース処理に eval を使用しないように変更