peco関係。
function peco command peco --layout=bottom-up $argv end function peco_select_history if set -q $argv history | peco | read line; commandline $line else history | peco --query $argv | read line; commandline $line end end function peco_select_zsh_history set -l query (commandline) if test -n $query set peco_flags --query "$query" end less $ZSH_HISTORY_FILE | cut -d ';' -f 2- | peco $peco_flags | read line if [ $line ] commandline $line else commandline -f repaint end end function fish_user_key_bindings bind \c] peco_select_ghq_repository bind \ct peco_select_zsh_history bind \cr peco_select_history end function cd builtin cd $argv ls -la end
fishシェル専門サイトfish.rubikitch.com設立! | るびきち「日刊Emacs」
zsh/bashと違うところがあり、export/unsetではなく、set/set -e