Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After opening bash, log in as the current user, not bash-3.2$(打开bash怎么默认以当前登录用户的身份登录) #753

Closed
GanHuaLin opened this issue May 12, 2022 · 3 comments

Comments

@GanHuaLin
Copy link

GanHuaLin commented May 12, 2022

On a terminal like a MAC, the default to open is the current user identity
就像MAC的终端那样,默认打开的是当前用户的身份
iShot_2022-05-12_15 51 32
iShot_2022-05-12_23 25 54

@GanHuaLin GanHuaLin changed the title After opening bash, log in as the current user, not bash-3.2$ After opening bash, log in as the current user, not bash-3.2$(打开bash怎么默认以当前登录用户的身份登录) May 14, 2022
@kingToolbox
Copy link
Owner

Sorry for the late reply.

I tried to open /bin/bash directly, it shows exactly the same as WindTerm. And if you open the zsh session in WindTerm you can get what you want.

BTW:
In WindTerm, any MacOS shell session is logged in as the current user, including bash.

@GanHuaLin
Copy link
Author

Sorry for the late reply.

I tried to open /bin/bash directly, it shows exactly the same as WindTerm. And if you open the zsh session in WindTerm you can get what you want.

BTW: In WindTerm, any MacOS shell session is logged in as the current user, including bash.

iShot_2022-05-20_13 51 41

I hope that after OPENING shell ZSH, I can enter docker command or other commands without entering other commands, just like the terminal of MAC, so how should I configure?

(我希望我打开shell的zsh后,不用输入其他命令就可以像MAC自带的终端那样,可以输入docker命令或者其他命令,这样我该怎么配置?)

@GanHuaLin
Copy link
Author

参考了一下其他终端应用,添加参数:-l
iShot_2022-05-24_10 46 32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants