Skip to main content

All Questions

Tagged with
2 votes
1 answer
58 views

Are \[ and \] needed?

I see this bash prompt config from the internet: PS1="\[\e[0m\]\[\e[0;92m\]\u\[\e[91m\]@\[\e[93m\]\h\[\e[0m\]:\[\e[0;94m\]\w\[\033[1;30m\]\[\e[0m\]$ " As the document say: \[ and \] are used to ...
Bình Nguyên's user avatar
3 votes
1 answer
3k views

How to start terminal in which bash is running with adjusted environment variables?

I'm using Xubuntu with XFCE. I would like to write a bash script which opens a new tab in the xfce4-terminal. In this tab, the bash should be running with an altered PATH environment variable. ...
Multisync's user avatar
  • 268
3 votes
2 answers
2k views

Thunar custom command: Keep Terminal open

When I make custom commands for Thunar with the xfce4-terminal -x command, sometimes I'd like to see the Terminal output of the command. How can I prevent Terminal from closing after the command is ...
GreenRaccoon23's user avatar