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
We use as the default shell: Bash on our servers but some of us like zsh more, so we searching for a way, to set ZSH automatically.
chsh to zsh i not an option.
How about
ssh -t remote_user#remote_host zsh
?
Depends on how 'automatically' do you want it.
If you want that just ssh -t remote_user#remote_host should give you zsh prompt, then you should think on the lines of bash functions probably. but IMO, that would be a really bad way to do it.
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 am using Terminal on MacOS. My main concern is that I’m commonly seeing command lines starting with the ‘$’ sign.
My command lines begins with a ‘%’ sign. Does this matter? If so, what is the reason?
The reason is that bash is no longer the default shell in macos. The default shell is now zsh which has certain advantages, such as floating-point operators.
You may set the Terminal default shell back to bash if needed. It's path is simply /bin/bash
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
Using chsh I can change my login shell. However, how do I change my non-login shell? I am using Linux Mint with Cinnamon desktop.
I found the answer on AskUbuntu:
Cinnamon uses gnome-terminal and one must edit their profile to run any other shell than the default (bash).
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
I did something wrong with PATH, so currently if I type ls command I get:
bash: ls: command not found
How can I solve it?
Restore $PATH. The easiest way to do this is to close the current shell and open a new one (assuming you didn't futz with the shell startup files and this is why it's broken).
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
When you are in Terminal, you are greeted with a prompt saying:
computer_name:~ directory user$ (command input)
Then if you use the command "bash", the prompt changes to:
bash-3.2$ (command input)
Now I understand that when you use a command like "python", you are taken into the Python interpreter, but it seems like pretty much all the same commands as usual work when you switch to Bash. Could someone explain what (if anything) is happening here?
When you type bash you are taken into a new Bash instance. If you press Ctrl + D you will exit. OSX uses Bash as default shell.
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.