Skip to content

Instantly share code, notes, and snippets.

@jpillora
Last active July 10, 2017 03:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpillora/5201489 to your computer and use it in GitHub Desktop.
Save jpillora/5201489 to your computer and use it in GitHub Desktop.
a fish config
set PATH /usr/local/bin $PATH
function fish_greeting
end
function fish_prompt
set_color cyan
echo -n $USER
echo -n ' '
set_color $fish_color_cwd
echo -n (prompt_pwd)
set_color normal
echo -n ' '
end
function prompt_pwd --description 'Print the current working directory, NOT shortened to fit the prompt'
printf "%s" (echo $PWD|sed -e 's|/private||' -e "s|^$HOME|~|")
end
@jpillora
Copy link
Author

jpillora commented Nov 5, 2013

needs to go in ~/.config/fish/config.fish

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment