4 ms·
I had the same feeling. I already know my username, and if there's a directory name before my prompt the "in" is implicit.
by jpttsn 13y ago
I had the same feeling. I already know my username, and if there's a directory name before my prompt the "in" is implicit.
- tekromancr 13y agoDo you know your username when you are using connected to a tmux over ssh that may or may not have another, very similar, server running inside of a screen?
- josso 13y agoWhich is why you setup your shell (bash/zsh/fish) to check for the existence of $SSH_CLIENT. If it exists, you can assume you're connecting via SSH and add username and hostname to $PS1.