From dbc12a7890206f80d22d27dafaafb171766ba378 Mon Sep 17 00:00:00 2001 From: Xingyu Wang Date: Thu, 25 Feb 2021 14:29:11 +0800 Subject: [PATCH] PRF&PUB @wxy https://linux.cn/article-13152-1.html --- ... Open-Source Customizable Prompt for Any Shell.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) rename {translated/tech => published}/20210220 Starship- Open-Source Customizable Prompt for Any Shell.md (94%) diff --git a/translated/tech/20210220 Starship- Open-Source Customizable Prompt for Any Shell.md b/published/20210220 Starship- Open-Source Customizable Prompt for Any Shell.md similarity index 94% rename from translated/tech/20210220 Starship- Open-Source Customizable Prompt for Any Shell.md rename to published/20210220 Starship- Open-Source Customizable Prompt for Any Shell.md index 76b804b1e9..0f04781757 100644 --- a/translated/tech/20210220 Starship- Open-Source Customizable Prompt for Any Shell.md +++ b/published/20210220 Starship- Open-Source Customizable Prompt for Any Shell.md @@ -1,15 +1,17 @@ [#]: collector: (lujun9972) [#]: translator: (wxy) [#]: reviewer: (wxy) -[#]: publisher: ( ) -[#]: url: ( ) +[#]: publisher: (wxy) +[#]: url: (https://linux.cn/article-13152-1.html) [#]: subject: (Starship: Open-Source Customizable Prompt for Any Shell) [#]: via: (https://itsfoss.com/starship/) [#]: author: (Ankush Das https://itsfoss.com/author/ankush/) -Starship: 跨 shell 的可定制的提示符 +Starship:跨 shell 的可定制的提示符 ====== +![](https://img.linux.net.cn/data/attachment/album/202102/25/142817taqq2ahab0t61zss.jpg) + > 如果你很在意你的终端的外观的话,一个跨 shell 的提示符可以让你轻松地定制和配置 Linux 终端提示符。 虽然我已经介绍了一些帮助你 [自定义终端外观][1] 的技巧,但我也发现了一些有趣的跨 shell 提示符的建议。 @@ -67,7 +69,7 @@ sudo apt install curl curl -fsSL https://starship.rs/install.sh | bash ``` -这应该会以 root 身份将 Starship 安装到 `usr/local/bin`。你可能会被提示输入密码。下面是它的样子: +这应该会以 root 身份将 Starship 安装到 `usr/local/bin`。你可能会被提示输入密码。看起来如下: ![][11] @@ -89,7 +91,7 @@ nano .bashrc ![][12] -完成后,只需重启终端或重启会话即可看到最小化的提示符。对于你的 shell 来说,它可能看起来有点不同,但默认情况下应该是一样的。 +完成后,只需重启终端或重启会话即可看到一个精简的提示符。对于你的 shell 来说,它可能看起来有点不同,但默认情况下应该是一样的。 ![][13]