Skip to content

Instantly share code, notes, and snippets.

@netmute
Last active October 17, 2019 11:28
Show Gist options
  • Save netmute/6761892 to your computer and use it in GitHub Desktop.
Save netmute/6761892 to your computer and use it in GitHub Desktop.
fish config
# 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)
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
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