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

A bit more readable and streamlined PS1 #2

Open
wants to merge 2 commits into
base: patch-1
Choose a base branch
from
Open

Conversation

DanieleQ97
Copy link
Owner

@DanieleQ97 DanieleQ97 commented Jul 5, 2019

  • Removed unnecessary code (the escaped square brackets before and after every text formatting code).
  • Replaced obscure colors & fonts escaping codes with more readable variables.
  • Rewritten every instance of the "If... Then... Else..." statement with the same syntax: [[ ... ]] && ... || ...
    Probably not the more readable by itself but the one that require less single and/or double quotes (thus requiring less character escapes and improving the general readability).
  • The resulting shell prompt should be exactly the same as before.

Removed unnecessary code (the escaped square brackets before and after every text formatting code).
Replaced obscure colors & fonts escaping codes with more readable variables.
Rewrited every instance of the "If... Then... Else..." statement with the same syntax, `[[ ... ]] && ... || ...`. Not the more readable by itself but the one that require less single and/or double quotes (thus requiring less character escapes and improving the general readbility).
The resulting shell prompt should be exactly the same as before.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant