Last active
October 17, 2019 11:28
-
-
Save netmute/6761892 to your computer and use it in GitHub Desktop.
fish config
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
# frees up ctrl-s and ctrl-q | |
stty -ixon -ixoff | |
# set the go path | |
set --export PATH $GOPATH/bin $PATH | |
# rbenv | |
status --is-interactive && source (rbenv init - | psub) |
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 --description 'Write out the prompt' | |
set last_status $status | |
set_color $fish_color_cwd | |
printf '%s' (prompt_pwd) | |
set_color normal | |
printf '%s' (__fish_git_prompt) | |
set_color normal | |
printf ' ' | |
end |
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_title | |
switch $_ | |
case fish | |
echo (prompt_pwd) | |
case vim | |
set filename (echo $argv | cut -d " " -f2- | sed -e 's/^"//' -e 's/"$//') | |
if test -f $filename | |
echo (basename $filename) | |
else if test -d .git | |
echo vim \((basename $PWD)\) | |
else | |
echo vim | |
end | |
case bundle | |
if test (echo $argv | cut -d " " -f2) = exec | |
echo (echo $argv | cut -d " " -f3,4) | |
else | |
echo (echo $argv | cut -d " " -f1,2) | |
end | |
case '*' | |
echo $_ | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment