[GH-ISSUE #1331] [功能建议] 登录shell后,自动输入命令 #762

Closed
opened 2026-02-27 00:00:54 +03:00 by kerem · 5 comments
Owner

Originally created by @yzfly on GitHub (Aug 26, 2019).
Original GitHub issue: https://github.com/electerm/electerm/issues/1331

首先感谢: 很棒的 SSH 客户端, UI 和功能都让人赏心悦目,感谢开发者的付出

提一点小建议,就是登录 shell 后能否设置自动执行预先设定的命令,如 xshell 里面的预定义规则一样,如: https://blog.csdn.net/SwTesting/article/details/80283632

应用场景: 多人使用同一个用户登录linux, 每个人都有自己的文件夹,希望在不修改 .bashrc 的情况下,自己登录的时候能够自动切换到自己的文件夹。

该功能也可通过 quick command 实现,手动多点一下即可。

简单建议,仅供参考,谢谢~

Originally created by @yzfly on GitHub (Aug 26, 2019). Original GitHub issue: https://github.com/electerm/electerm/issues/1331 首先感谢: 很棒的 SSH 客户端, UI 和功能都让人赏心悦目,感谢开发者的付出 提一点小建议,就是登录 shell 后能否设置自动执行预先设定的命令,如 xshell 里面的预定义规则一样,如: https://blog.csdn.net/SwTesting/article/details/80283632 应用场景: 多人使用同一个用户登录linux, 每个人都有自己的文件夹,希望在不修改 .bashrc 的情况下,自己登录的时候能够自动切换到自己的文件夹。 该功能也可通过 quick command 实现,手动多点一下即可。 简单建议,仅供参考,谢谢~
kerem closed this issue 2026-02-27 00:00:54 +03:00
Author
Owner

@lizhuangs commented on GitHub (Aug 26, 2019):

看来quick command需求的人挺多的。我上次提了一下,作者马上就加上去了,简直神速。。。现在用得飞起。

<!-- gh-comment-id:524689659 --> @lizhuangs commented on GitHub (Aug 26, 2019): 看来quick command需求的人挺多的。我上次提了一下,作者马上就加上去了,简直神速。。。现在用得飞起。
Author
Owner

@zxdong262 commented on GitHub (Aug 26, 2019):

@yzfly 有的,试试这个
Screen Shot 2019-08-26 at 10 35 12 AM

<!-- gh-comment-id:524694003 --> @zxdong262 commented on GitHub (Aug 26, 2019): @yzfly 有的,试试这个 <img width="528" alt="Screen Shot 2019-08-26 at 10 35 12 AM" src="https://user-images.githubusercontent.com/1641949/63661472-4fb5c580-c7ed-11e9-8c8f-6c94f9290495.png">
Author
Owner

@yzfly commented on GitHub (Aug 27, 2019):

@yzfly 有的,试试这个
Screen Shot 2019-08-26 at 10 35 12 AM

谢谢, 刚刚使用了该功能, 很棒, 是自己之前疏忽了

<!-- gh-comment-id:525198949 --> @yzfly commented on GitHub (Aug 27, 2019): > @yzfly 有的,试试这个 > <img alt="Screen Shot 2019-08-26 at 10 35 12 AM" width="528" src="https://user-images.githubusercontent.com/1641949/63661472-4fb5c580-c7ed-11e9-8c8f-6c94f9290495.png"> 谢谢, 刚刚使用了该功能, 很棒, 是自己之前疏忽了
Author
Owner

@qqwmly commented on GitHub (Aug 7, 2023):

run script 能执行多个命令吗
比如
cd work
./a.bash
echo 'aaaa'
我只会执行一个命令

<!-- gh-comment-id:1667376793 --> @qqwmly commented on GitHub (Aug 7, 2023): run script 能执行多个命令吗 比如 cd work ./a.bash echo 'aaaa' 我只会执行一个命令
Author
Owner

@zxdong262 commented on GitHub (Aug 8, 2023):

run script 能执行多个命令吗 比如 cd work ./a.bash echo 'aaaa' 我只会执行一个命令

可以 ls && mkdir a && rm -rf a这样

<!-- gh-comment-id:1668944162 --> @zxdong262 commented on GitHub (Aug 8, 2023): > run script 能执行多个命令吗 比如 cd work ./a.bash echo 'aaaa' 我只会执行一个命令 可以` ls && mkdir a && rm -rf a`这样
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#762
No description provided.