Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I would like the command
PROMPT_COMMAND=echo
to be executed every time I open bash. I've been told that this command can be read from ~/.profile, however, I do not know how to put it there.
echo 'PROMPT_COMMAND=echo' >> ~/.profile
If you are on mac, you have to add it to
~/.bash_profile
If on linux, it'll go in
~/.bashrc
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I installed bash in my Anaconda prompt, and this is what I'm seeing:
bash-4.3$
and I would like to see something like:
zzzz#zzvdhdc/users/xxx/myactualdirectory
use \w for the current directory:
PS1='\w $'
see man bash for more options to change your promt.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
whenever I open the terminal this line
bash: /home/user/.bash_completion/alacritty: No such file or directory
is displayed. I tried to install alacritty terminal but it failed and there after I am seeing this line in the terminal. How to solve this problem?
Looking at the install instructions here, you would have done:
echo "source ~/.bash_completion/alacritty" >> ~/.bashrc
So, just edit ~/.bashrc and delete the line source ~/.bash_completion/alacritty.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I only want a $ to show up in my terminal (mac) instead of: Macintosh:~ username$
I tried to change it in the settings but that didn't work...
Does anyone know how to do this?
Thanks in advance!
edit ~/.bash_profile
add the following line: export PS1="$ "
This can be done by editing ~/.bash_profile
There are lots of tutorials online.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Good morning folks,
I'd like to edit default attributes of some shell commands.
e.g. if I enter "ls", the shell should then interprete "ls -lth".
Could anyone please help me?
Thanks !
Sonsoles
An alias is the solution:
alias ls='ls -lth'
You have to store it in your ~/.bashrc to make it work every time you log in.
In case you some day want to use the default ls, you can invoke the default behaviour typing \ls.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
Sorry for the silly question...
How do I clear my terminal screen? Cause ctrl+U just doesn't seem to work. Or do I need to assign this command somewhere?
Thanks
Try CTRL+L. In alternative, you can run clear command.