Skip to content

Instantly share code, notes, and snippets.

@quanon
Created October 30, 2016 14:15
Show Gist options
  • Save quanon/804b002e1033c3ff6cec3786554796b3 to your computer and use it in GitHub Desktop.
Save quanon/804b002e1033c3ff6cec3786554796b3 to your computer and use it in GitHub Desktop.
fish
# ~/.config/fish/config.fish
## peco ##
function fish_user_key_bindings
bind \cr peco_select_history
end
## rbenv ##
set -x PATH $HOME/.rbenv/bin $PATH
rbenv init - | source
## pyenv ##
set -x PYENV_ROOT $HOME/.pyenv
set -x PATH $PYENV_ROOT/bin $PATH
pyenv init - | source
## nodebrew ##
set -x PATH $HOME/.nodebrew/current/bin $PATH
# ~/.config/fish/functions/peco_select_history.fish
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment