Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

How to avoid tilde ~ in Bash prompt?

bash runs expansions in the prompt; just make sure to escape them.

PS1='\h:$(pwd)\n$'

Tags:

Unix

Command Line

Bash

Related

Taskkill.exe: don't throw an error if the process is not running Some Mac applications crash frequently, with "__THE_SYSTEM_HAS_NO_PORT_SETS_AVAILABLE__" in backtrace How do you run a gnu screen within a gnu screen? ZSH - output whole history? How to tell git which private key to use? How to convert .ppk key to OpenSSH key under Linux? Viewing zip archive contents using 'less' on OS X Does or will exFAT support symlinks? How to boot directly into a VirtualBox image? How do I make sudo preserve my environment variables? Multithreaded Windows FOR batch command Is there a drawing tool which can draw this image?

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy