2021-01-03 03:56:07 -05:00
---
2024-03-03 17:55:30 +01:00
layout: home
hero:
image: /logo.svg
2024-03-21 20:42:05 +09:00
text:
2024-03-03 17:55:30 +01:00
tagline: التخصيص البسيط و السريع و الغير محدود لي ال"shell"!
actions:
2024-03-21 20:42:05 +09:00
-
theme: brand
2024-03-03 17:55:30 +01:00
text: البدء مع Starship ←
link: ./guide/
2021-01-03 03:56:07 -05:00
features:
2024-03-21 20:42:05 +09:00
-
2021-11-07 18:07:39 +00:00
title: التوافق أولاً
details: يعمل على أكثر موجهات الأوامر شيوعاً في أكثر نظم التشغيل شيوعاً. استخدمه في كل مكان!
2024-03-21 20:42:05 +09:00
-
2021-01-03 03:56:07 -05:00
title: Rust-Powered
details: Brings the best-in-class speed and safety of Rust, to make your prompt as quick and reliable as possible.
2024-03-21 20:42:05 +09:00
-
2021-11-07 18:07:39 +00:00
title: قابل للتخصيص
2021-01-03 03:56:07 -05:00
details: Every little detail is customizable to your liking, to make this prompt as minimal or feature-rich as you'd like it to be.
footer: ISC Licensed | Copyright © 2019-present Starship Contributors
#Used for the description meta tag, for SEO
metaTitle: "Starship: Cross-Shell Prompt"
2022-01-15 17:08:31 -05:00
description: Starship is the minimal, blazing fast, and extremely customizable prompt for any shell! Shows the information you need, while staying sleek and minimal. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell.
2021-01-03 03:56:07 -05:00
---
2024-05-16 02:07:00 +09:00
<script setup>
import { onMounted } from 'vue'
onMounted(() => {
const urlParams = new URLSearchParams(window.location.search)
if (urlParams.has('uwu') || urlParams.has('kawaii')) {
const img = document.querySelector('.VPHero .VPImage.image-src')
img.classList.add('uwu')
img.src = '/logo-uwu.png'
img.alt = 'Kawaii Starship Logo by @sawaratsuki1004 '
}
})
</script>
2024-03-21 20:42:05 +09:00
<video class="demo-video" muted autoplay loop playsinline>
<source src="/demo.webm" type="video/webm">
<source src="/demo.mp4" type="video/mp4">
</video>
2021-01-03 03:56:07 -05:00
2021-11-07 18:07:39 +00:00
### المتطلبات الأساسية
2021-04-22 17:12:09 -04:00
2021-11-07 18:07:39 +00:00
- تثبيت [Nerd Font ](https://www.nerdfonts.com/ ) وتمكينه في موجه الأوامر الخاصة بك.
2021-04-22 17:12:09 -04:00
2021-11-07 18:07:39 +00:00
### تثبيت سريع
2021-01-03 03:56:07 -05:00
2021-11-07 18:07:39 +00:00
1. تثبيت **starship ** :
2021-01-03 03:56:07 -05:00
2021-11-07 18:07:39 +00:00
#### تثبيت أحدث إصدار
2021-01-03 03:56:07 -05:00
2021-11-07 18:07:39 +00:00
بإستخدام Shell:
2021-01-03 03:56:07 -05:00
```sh
2022-03-08 21:11:36 -05:00
curl -sS https://starship.rs/install.sh | sh
2021-01-03 03:56:07 -05:00
` ``
2022-03-08 21:11:36 -05:00
2021-11-07 18:07:39 +00:00
لتحديث Starship نفسه، أعد تشغيل البرنامج النصي أعلاه. سيتم استبدال الإصدار الحالي بدون لمس تكوين Starship.
2021-01-03 03:56:07 -05:00
2021-11-07 18:07:39 +00:00
#### التثبيت عبر مدير الحزم
2021-01-03 03:56:07 -05:00
2021-11-07 18:07:39 +00:00
بإستخدام [Homebrew](https://brew.sh/):
2021-01-03 03:56:07 -05:00
` ``sh
brew install starship
` ``
2024-03-21 20:42:05 +09:00
2022-10-14 21:53:32 -04:00
With [Winget](https://github.com/microsoft/winget-cli):
2021-01-03 03:56:07 -05:00
` ``powershell
2022-10-14 21:53:32 -04:00
winget install starship
2021-01-03 03:56:07 -05:00
` ``
2022-03-24 15:47:11 -05:00
1. أضف ما يلي إلى ملف تكوين موجه الأوامر الخاص بك:
2021-01-03 03:56:07 -05:00
#### Bash
2021-11-07 18:07:39 +00:00
أضف ما يلي إلى نهاية ` ~/.bashrc`:
2021-01-03 03:56:07 -05:00
` ``sh
# ~/.bashrc
eval "$(starship init bash)"
` ``
#### Fish
2021-11-07 18:07:39 +00:00
أضف ما يلي إلى نهاية ` ~/.config/fish/config.fish`:
2021-01-03 03:56:07 -05:00
` ``sh
# ~/.config/fish/config.fish
starship init fish | source
` ``
#### Zsh
2021-11-07 18:07:39 +00:00
أضف ما يلي إلى نهاية ` ~/.zshrc`:
2021-01-03 03:56:07 -05:00
` ``sh
# ~/.zshrc
eval "$(starship init zsh)"
` ``
#### Powershell
Add the following to the end of ` Microsoft.PowerShell_profile.ps1`. You can check the location of this file by querying the ` $PROFILE` variable in PowerShell. Typically the path is ` ~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` or ` ~/.config/powershell/Microsoft.PowerShell_profile.ps1` on -Nix.
` ``sh
Invoke-Expression (&starship init powershell)
` ``
#### Ion
2021-11-07 18:07:39 +00:00
أضف ما يلي إلى نهاية ` ~/.config/ion/initrc`:
2021-01-03 03:56:07 -05:00
` ``sh
# ~/.config/ion/initrc
eval $(starship init ion)
` ``
2021-02-06 12:46:15 -05:00
2021-08-14 09:24:51 -04:00
2021-02-06 12:46:15 -05:00
#### Elvish
2025-10-25 20:33:44 +09:00
> [!WARNING] Only elvish v0.18 or higher is supported.
2022-05-24 17:19:44 -04:00
2025-10-25 20:33:44 +09:00
Add the following to the end of ` ~/.config/elvish/rc.elv` (` %AppData%\elvish\rc.elv` on Windows):
2021-02-06 12:46:15 -05:00
` ``sh
# ~/.elvish/rc.elv
eval (starship init elvish)
` ``
2025-10-25 20:33:44 +09:00
For elvish versions prior to v0.21.0 the config file might instead be ` ~/.elvish/rc.elv`
2021-02-06 12:46:15 -05:00
2021-03-15 13:18:42 -04:00
#### Tcsh
2021-11-07 18:07:39 +00:00
أضف ما يلي إلى نهاية ` ~/.tcshrc`:
2021-03-15 13:18:42 -04:00
` ``sh
# ~/.tcshrc
eval ` starship init tcsh`
` ``
2021-07-10 17:15:23 -04:00
2021-08-14 09:24:51 -04:00
#### Nushell
2021-07-10 17:15:23 -04:00
2025-10-25 20:33:44 +09:00
> [!WARNING] This will change in the future. Only Nushell v0.96+ is supported.
2022-05-24 17:19:44 -04:00
2025-01-12 00:23:14 +09:00
Add the following to the end of your Nushell configuration (find it by running ` $nu.config-path` in Nushell):
2024-03-21 20:42:05 +09:00
2022-03-24 15:47:11 -05:00
` ``sh
2025-01-12 00:23:14 +09:00
mkdir ($nu.data-dir | path join "vendor/autoload")
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
2022-03-24 15:47:11 -05:00
` ``
2021-08-14 09:24:51 -04:00
2023-07-30 09:29:01 -04:00
2021-08-14 09:24:51 -04:00
#### Xonsh
2021-11-07 18:07:39 +00:00
أضف ما يلي إلى نهاية ` ~/.xonshrc`:
2021-08-14 09:24:51 -04:00
` ``sh
# ~/.xonshrc
execx($(starship init xonsh))
` ``
2022-01-15 17:08:31 -05:00
#### Cmd
2022-10-14 21:53:32 -04:00
عليك بإستخدام [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) مع Cmd. Add the following to a file ` starship.lua` and place this file in Clink scripts directory:
2022-01-15 17:08:31 -05:00
` ``lua
-- starship.lua
load(io.popen('starship init cmd'):read("*a"))()
` ``