Created
October 30, 2016 14:15
-
-
Save quanon/804b002e1033c3ff6cec3786554796b3 to your computer and use it in GitHub Desktop.
fish
This file contains hidden or 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
# ~/.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 |
This file contains hidden or 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
# ~/.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