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
function _peco_change_directory | |
if [ (count $argv) ] | |
peco --layout=bottom-up --query "$argv "|perl -pe 's/([ ()])/\\\\$1/g'|read foo | |
else | |
peco --layout=bottom-up |perl -pe 's/([ ()])/\\\\$1/g'|read foo | |
end | |
if [ $foo ] | |
builtin cd $foo | |
else | |
commandline '' |
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
function fish_prompt | |
if not set -q -g __fish_robbyrussell_functions_defined | |
set -g __fish_robbyrussell_functions_defined | |
function _git_branch_name | |
echo (git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||') | |
end | |
function _is_git_dirty | |
echo (git status -s --ignore-submodules=dirty ^/dev/null) |
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
# Path to your oh-my-fish. | |
set fish_path $HOME/.oh-my-fish | |
# Theme | |
set fish_theme agnoster # cean # zish # bobthefish # cmorrell.com # robbyrussell | |
# All built-in plugins can be found at ~/.oh-my-fish/plugins/ | |
# Custom plugins may be added to ~/.oh-my-fish/custom/plugins/ | |
# Enable plugins by adding their name separated by a space to the line below. | |
set fish_plugins theme git rbenv rails brew bundler gem osx pbcopy better-alias gi peco z tmux |
NewerOlder