Last active
July 10, 2017 03:41
-
-
Save jpillora/5201489 to your computer and use it in GitHub Desktop.
a fish config
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
needs to go in
~/.config/fish/config.fish