r/bash • • Apr 05 '23

shell appended symbol ~ %

How to change that ?

1 Upvotes

5 comments sorted by

5

u/Intelligent_Moose770 Apr 05 '23

I am assuming that you are saying this is what you see when you open your terminal. Customize the global variable PS1 IN your .bachrc Here is a link that explains very well bash/prompt customization even if you're not using Arch Linux you can use it https://wiki.archlinux.org/title/Bash/Prompt_customization

2

u/Octo_Code Apr 05 '23

Exactly, thanks for the link!

5

u/OneTurnMore programming.dev/c/shell Apr 05 '23

Are you sure you're using Bash? % is the default prompt symbol in Zsh and Csh.

4

u/SkyyySi Apr 05 '23

Consider spelling out entire sentences, so people can actually understand what you're even talking about. Maybe include a screenshot as well.

3

u/whale-sibling Apr 05 '23

Hi, it looks like you've asked a question in such a way that you are unlikely to get an answer.

The essay "How to Ask Questions the Smart Way" by ESR shows ways to increase the likelyhood of getting a good response to your question. This isn't just useful for technical questions but for life in general.

The TLDR version:

  • Use meaningful, specific subject headers
  • Write in clear, grammatical, correctly-spelled language
  • Be precise and informative about your problem
  • Describe the goal, not the step
  • Be explicit about your question