mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
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:
parent
b794a5e476
commit
bd1ceefb17
1 changed files with 0 additions and 15 deletions
|
@ -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
|
Loading…
Reference in a new issue