This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [[ "$(command -v peco)" ]]; then | |
# Search shell history with peco: https://github.com/peco/peco | |
# Adapted from: https://github.com/mooz/percol#zsh-history-search | |
function peco_select_history() { | |
BUFFER=$(fc -lnr 1 | peco --initial-filter Regexp --query "$LBUFFER") | |
CURSOR=$#BUFFER # move cursor | |
zle -R -c # refresh | |
} | |
zle -N peco_select_history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# author: [email protected] | |
# inspiration from https://www.reddit.com/r/tmux/comments/7r8otc/is_there_short_command_to_expansetoggle_tmux_pane/ | |
# | |
# This script toggles the vertical size of the current tmux pane to maximum | |
# Note that the other panes in the same column will still be visible, but | |
# they will be only one line tall. | |
# | |
# Installation: |
OlderNewer