diff options
author | Matan Kushner <hello@matchai.dev> | 2022-02-07 15:53:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-07 15:53:55 +0100 |
commit | 1d965a9d24509d500954669b4e5fb08e54733411 (patch) | |
tree | d2d0714bad4ba9ac79a8a8385a690ad0e454c2a3 /docs/ar-SA/guide | |
parent | db86a93824ae0ce985db463ea34807990b3b879b (diff) |
docs(i18n): new Crowdin updates (#3460)
Diffstat (limited to 'docs/ar-SA/guide')
-rw-r--r-- | docs/ar-SA/guide/README.md | 246 |
1 files changed, 157 insertions, 89 deletions
diff --git a/docs/ar-SA/guide/README.md b/docs/ar-SA/guide/README.md index 243fcfca4..95c9d8964 100644 --- a/docs/ar-SA/guide/README.md +++ b/docs/ar-SA/guide/README.md @@ -169,159 +169,227 @@ - تثبيت [Nerd Font](https://www.nerdfonts.com/) وتمكينه في موجه الأوامر الخاصة بك (على سبيل المثال، جرب [Fira Code Nerd Font](https://www.nerdfonts.com/font-downloads)). -### البدء مع Starship +### Step 1. Install Starship -**Note**: due to the proliferation of different platforms, only a subset of supported platforms are shown below. Can't see yours? Have a look at the [extra platform instructions](https://starship.rs/installing/). +Select your operating system from the list below to view installation instructions: -1. تثبيت **starship**: +<details> +<summary>Android</summary> +Install Starship using any of the following package managers: - #### تثبيت أحدث إصدار +| Repository | Instructions | +| --------------------------------------------------------------------------------- | ---------------------- | +| [Termux](https://github.com/termux/termux-packages/tree/master/packages/starship) | `pkg install starship` | +</details> - ##### From prebuilt binary, with Shell: +<details> +<summary>BSD</summary> - ```sh - sh -c "$(curl -fsSL https://starship.rs/install.sh)" - ``` +Install Starship using any of the following package managers: - لتحديث Starship نفسه، أعد تشغيل البرنامج النصي أعلاه. سيتم استبدال الإصدار الحالي بدون لمس تكوين Starship. +| Distribution | Repository | Instructions | +| ------------ | -------------------------------------------------------- | --------------------------------- | +| **_Any_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | +| FreeBSD | [FreshPorts](https://www.freshports.org/shells/starship) | `pkg install starship` | +| NetBSD | [pkgsrc](https://pkgsrc.se/shells/starship) | `pkgin install starship` | - **ملاحظة** - يمكن تجاوز الإعدادات الافتراضية لنص التثبيت لرؤية المساعدة المدمجة. +</details> - ```sh - sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- --help - ``` +<details> +<summary>Linux</summary> +Install the latest version for your system: - #### التثبيت عبر مدير الحزم +```sh +sh -c "$(curl -fsSL https://starship.rs/install.sh)" +``` +Alternatively, install Starship using any of the following package managers: - ##### بإستخدام [Homebrew](https://brew.sh/): +| Distribution | Repository | Instructions | +| ------------------ | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ | +| **_Any_** | **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | +| _Any_ | [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` | +| _Any_ | [Linuxbrew](https://formulae.brew.sh/formula/starship) | `brew install starship` | +| _Any_ | [Snapcraft](https://snapcraft.io/starship) | `snap install starship` | +| Alpine Linux 3.13+ | [Alpine Linux Packages](https://pkgs.alpinelinux.org/packages?name=starship) | `apk add starship` | +| Arch Linux | [Arch Linux Community](https://archlinux.org/packages/community/x86_64/starship) | `pacman -S starship` | +| CentOS 7+ | [Copr](https://copr.fedorainfracloud.org/coprs/atim/starship) | `dnf copr enable atim/starship` <br /> `dnf install starship` | +| Fedora 31+ | [Fedora Packages](https://src.fedoraproject.org/rpms/rust-starship) | `dnf install starship` | +| NixOS | [nixpkgs](https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/starship/default.nix) | `nix-env -iA nixos.starship` | +| Gentoo | [Gentoo Packages](https://packages.gentoo.org/packages/app-shells/starship) | `emerge app-shells/starship` | +| Manjaro | | `pacman -S starship` | +| NixOS | [nixpkgs](https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/starship/default.nix) | `nix-env -iA nixpkgs.starship` | +| Void Linux | [Void Linux Packages](https://github.com/void-linux/void-packages/tree/master/srcpkgs/starship) | `xbps-install -S starship` | - ```sh - brew install starship - ``` +</details> +<details> +<summary>macOS</summary> - ##### بإستخدام [Scoop](https://scoop.sh): +Install the latest version for your system: - ```powershell - scoop install starship - ``` +```sh +sh -c "$(curl -fsSL https://starship.rs/install.sh)" +``` -2. أضف ما يلي إلى ملف تكوين موجه الأوامر الخاص بك: +Alternatively, install Starship using any of the following package managers: +| Repository | Instructions | +| -------------------------------------------------------- | --------------------------------------- | +| **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | +| [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` | +| [Homebrew](https://formulae.brew.sh/formula/starship) | `brew install starship` | +| [MacPorts](https://ports.macports.org/port/starship) | `port install starship` | - #### Bash +</details> - أضف ما يلي إلى نهاية `~/.bashrc`: +<details> +<summary>Windows</summary> - ```sh - # ~/.bashrc +Install Starship using any of the following package managers: - eval "$(starship init bash)" - ``` +| Repository | Instructions | +| -------------------------------------------------------------------------------- | --------------------------------------- | +| **[crates.io](https://crates.io/crates/starship)** | `cargo install starship --locked` | +| [Chocolatey](https://community.chocolatey.org/packages/starship) | `choco install starship` | +| [conda-forge](https://anaconda.org/conda-forge/starship) | `conda install -c conda-forge starship` | +| [Scoop](https://github.com/ScoopInstaller/Main/blob/master/bucket/starship.json) | `scoop install starship` | +</details> - #### Fish +### Step 2. Setup your shell to use Starship - أضف ما يلي إلى نهاية `~/.config/fish/config.fish`: +Configure your shell to initialize starship. Select yours from the list below: - ```sh - # ~/.config/fish/config.fish +<details> +<summary>Bash</summary> - starship init fish | source - ``` +أضف ما يلي إلى نهاية `~/.bashrc`: +```sh +eval "$(starship init bash)" +``` - #### Zsh +</details> - أضف ما يلي إلى نهاية `~/.zshrc`: +<details> +<summary>Cmd</summary> - ```sh - # ~/.zshrc +You need to use [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) with Cmd. Create a file at this path `%LocalAppData%\clink\starship.lua` with the following contents: - eval "$(starship init zsh)" - ``` +```lua +load(io.popen('starship init cmd'):read("*a"))() +``` +</details> - #### PowerShell +<details> +<summary>Elvish</summary> - 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. +أضف ما يلي إلى نهاية `~/.elvish/rc.elv`: - ```powershell - Invoke-Expression (&starship init powershell) - ``` +```sh +eval (starship init elvish) +``` +Note: Only Elvish v0.17+ is supported - #### Ion +</details> - أضف ما يلي إلى نهاية `~/.config/ion/initrc`: +<details> +<summary>Fish</summary> - ```sh - # ~/.config/ion/initrc +أضف ما يلي إلى نهاية `~/.config/fish/config.fish`: - eval $(starship init ion) - ``` +```fish +starship init fish | source +``` +</details> - #### Elvish +<details> +<summary>Ion</summary> - **Warning** Only elvish v0.17 or higher is supported. أضف ما يلي إلى نهاية `~/.elvish/rc.elv`: +أضف ما يلي إلى نهاية `~/.config/ion/initrc`: - ```sh - # ~/.elvish/rc.elv +```sh +eval $(starship init ion) +``` - eval (starship init elvish) - ``` +</details> +<details> +<summary>Nushell</summary> - #### Tcsh +Add the following to the end of your Nushell configuration (find it by running `config path`): - أضف ما يلي إلى نهاية `~/.tcshrc`: +```toml +startup = [ + "mkdir ~/.cache/starship", + "starship init nu | save ~/.cache/starship/init.nu", + "source ~/.cache/starship/init.nu", +] +prompt = "starship_prompt" +``` - ```sh - # ~/.tcshrc +</details> - eval `starship init tcsh` - ``` +<details> +<summary>PowerShell</summary> +Add the following to the end of your PowerShell configuration (find it by running `$PROFILE`): - #### Xonsh +```powershell +Invoke-Expression (&starship init powershell) +``` - أضف ما يلي إلى نهاية `~/.xonshrc`: +</details> - ```sh - # ~/.xonshrc +<details> +<summary>Tcsh</summary> - execx($(starship init xonsh)) - ``` +أضف ما يلي إلى نهاية `~/.tcshrc`: +```sh +eval `starship init tcsh` +``` - #### Cmd +</details> - You need to use [Clink](https://chrisant996.github.io/clink/clink.html) (v1.2.30+) with Cmd. Add the following to a file `starship.lua` and place this file in Clink scripts directory: +<details> +<summary>Xonsh</summary> - ```lua - -- starship.lua +أضف ما يلي إلى نهاية `~/.xonshrc`: - load(io.popen('starship init cmd'):read("*a"))() - ``` +```python +execx($(starship init xonsh)) +``` +</details> - #### Nushell +<details> +<summary>Zsh</summary> - **Warning** This will change in the future. فقط إصدار nu v0.33 أو أعلى مدعوم. Add the following to your nu config file. يمكنك التحقق من موقع هذا الملف عن طريق تشغيل `config path` في nu. +أضف ما يلي إلى نهاية `~/.zshrc`: - ```toml - startup = [ - "mkdir ~/.cache/starship", - "starship init nu | save ~/.cache/starship/init.nu", - "source ~/.cache/starship/init.nu" - ] - prompt = "starship_prompt" - ``` +```sh +eval "$(starship init zsh)" +``` + +</details> + +### Step 3. Configure Starship + +Start a new shell instance, and you should see your beautiful new shell prompt. If you're happy with the defaults, enjoy! + +If you're looking to further customize Starship: + +- **[Configuration](https://starship.rs/config/)** – learn how to configure Starship to tweak your prompt to your liking + +- **[Presets](https://starship.rs/presets/)** – get inspired by the pre-built configuration of others ## 🤝 المساهمة @@ -335,11 +403,11 @@ يرجى التحقق من هذه الأعمال السابقة التي ساعدت على إنشاء starship. 🙏 -- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** - A ZSH prompt for astronauts. +- **[denysdovhan/spaceship-prompt](https://github.com/denysdovhan/spaceship-prompt)** – A ZSH prompt for astronauts. -- **[denysdovhan/robbyrussell-node](https://github.com/denysdovhan/robbyrussell-node)** - Cross-shell robbyrussell theme written in JavaScript. +- **[denysdovhan/robbyrussell-node](https://github.com/denysdovhan/robbyrussell-node)** – Cross-shell robbyrussell theme written in JavaScript. -- **[reujab/silver](https://github.com/reujab/silver)** - A cross-shell customizable powerline-like prompt with icons. +- **[reujab/silver](https://github.com/reujab/silver)** – A cross-shell customizable powerline-like prompt with icons. <p align="center"> <br> |