我知道如果我注销并更改设置,我可以停止使用 Wayland,但我不想每次 Ubunutu 更新时都必须注销。每次 Ubuntu 更新时,它都会再次启用 Wayland。我想永久禁用 Wayland,这样它就永远不会在我的计算机上使用。
我想轻松地git-go
为此终端行设置别名:
git commit -m "init "; git push; git status
Run Code Online (Sandbox Code Playgroud)
所以当我输入 git-go 时,应该输入这一行。
我怎样才能做到这一点?我看到的答案仅涵盖没有参数的命令的别名。但我想为任意终端线设置别名。
编辑: 我学会了使用函数而不是别名,因为
有关别名的定义和使用的规则有些令人困惑。
和
对于几乎所有用途,shell 函数都比别名更受欢迎。
所以除非必须,否则不要使用别名。 https://ss64.com/bash/alias.html
我有我想在 UI 中导航到的路径。 /usr/local/sbin
我怎样才能通过在 UI 中点击几下来做到这一点?