Manual A1 Installation - akinomyoga/ble.sh GitHub Wiki

[ 日本語 | English ] ≫ Manual [§1 Intro | §2 Color | §3 Bind | §4 Edit | §5 Emacs | §6 Vim | §7 Comp | §8 Misc | Index]

A1. Installation

Arch Linux (AUR)

blesh-git (devel)

# With makepkg
git clone https://aur.archlinux.org/blesh-git.git
cd blesh-git
makepkg -fsi

# With yay
yay -S blesh-git

# With paru
paru -S blesh-git

# With pacaur
pacaur -S blesh-git

# With pikaur
pikaur -S blesh-git

# With pakku
pakku -S blesh-git

# With yaourt
yaourt -S blesh-git

# With aurman
aurman -S blesh-git

# With trizen
trizen -S blesh-git

# With aura
sudo aura -Ax blesh-git

blesh (stable)

# With makepkg
git clone https://aur.archlinux.org/blesh.git
cd blesh
makepkg -fsi

# With yay
yay -S blesh

# With paru
paru -S blesh

# With pacaur
pacaur -S blesh

# With pikaur
pikaur -S blesh

# With pakku
pakku -S blesh

# With yaourt
yaourt -S blesh

# With aurman
aurman -S blesh

# With trizen
trizen -S blesh

# With aura
sudo aura -A blesh

Nix (nixpkgs)

blesh

Install manually

Use either nix-env or nix profile to install blesh.

$ nix-env -iA blesh
$ nix profile install nixpkgs#blesh

blesh package provides blesh-share executable, which echoes the directory path in which ble.sh is installed. You can use it to configure ble.sh in your ~/.bashrc.

# ~/.bashrc
source "$(blesh-share)"/ble.sh --attach=none # does not work currently
...
[[ ${BLE_VERSION-} ]] && ble-attach

Install with home-manager

[ToDo: Waiting for home-manager#3238 to be merged]

Home-manager automatically configures ble.sh. The minimum configuration is as follows:

{pkgs, ...}: {
  programs.bash.enable = true;
  programs.blesh.enable = true;
}

You can configure ble.sh options in a manner of home-manager:

{pkgs, ...}: {
  programs.blesh = {
    enable = true;
    options = {
      prompt_ps1_transient = "trim:same-dir";
      prompt_ruler = "empty-line";
    };
    blercExtra = ''
      function my/complete-load-hook {
        bleopt complete_auto_history=
        bleopt complete_ambiguous=
        bleopt complete_menu_maxlines=10
      };
      blehook/eval-after-load complete my/complete-load-hook
    '';
  };
}

See home-manager's documentation for any other options available.


[ 日本語 | English ] ≫ Manual [§1 Intro | §2 Color | §3 Bind | §4 Edit | §5 Emacs | §6 Vim | §7 Comp | §8 Misc | Index]

⚠️ **GitHub.com Fallback** ⚠️