sample_prompts/user_host_path: Remove

I can't see the value in this, given that we have a bunch of minimalist ones.
The "escaping" here is gnarly enough that I don't want to attempt to clean it up.
This commit is contained in:
Fabian Homborg 2018-11-11 14:24:30 +01:00
parent b794a5e476
commit bd1ceefb17

View file

@ -1,15 +0,0 @@
# name: User, Host, Path
# author: Jon Clayden
function fish_prompt -d "Write out the prompt"
set -l home_escaped (echo -n $HOME | sed 's/\//\\\\\//g')
set -l pwd (echo -n $PWD | sed "s/^$home_escaped/~/" | sed 's/ /%20/g')
set -l prompt_symbol ''
switch "$USER"
case root toor
set prompt_symbol '#'
case '*'
set prompt_symbol '$'
end
printf "[%s@%s %s%s%s]%s " $USER (prompt_hostname) (set_color $fish_color_cwd) $pwd (set_color normal) $prompt_symbol
end