Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(prompt): remove unwanted characters in my prompt #305

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion functions/_pure_user_at_host.fish
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ function _pure_user_at_host
set username_color (_pure_set_color $pure_color_username_root) # different color for root
end

echo "2<$username_color$username$at_sign_color$at_sign$hostname_color$hostname>2"
echo "$username_color$username$at_sign_color$at_sign$hostname_color$hostname"
end
2 changes: 1 addition & 1 deletion tests/_pure_user_at_host.test.fish
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ end; setup
set --universal pure_color_at_sign grey
set --universal pure_color_hostname blue

string match --quiet --regex (set_color green)'root'(set_color grey)'@'(set_color blue)'[\w]+' (_pure_user_at_host)
string match --quiet --regex '^'(set_color green)'root'(set_color grey)'@'(set_color blue)'[\w]+' (_pure_user_at_host)'$'
) $status -eq $SUCCESS