/anyrun-better-shell

Anyrun shell plugin to display the output of the entered command

Primary LanguageRustMIT LicenseMIT

Better Shell

Improved the basic anyrun shell plugin to display the output of the entered command

Build

To build the plugin, execute the following commands:

$ cargo build --release

You need to copy the compiled library to the plugin directory (if it doesn't exist, create one)

$ cp target/release/libbetter_shell.so ~/.config/anyrun/plugins/

Include the library in in your ~/.config/anyrun/config.ron

Config(
    plugins: [
-       "libshell.so",
+       "libbetter_shell.so",
        ...
    ]
)

Create a configuration file ~/.config/anyrun/better_shell.ron for your custom plugin (below the default configuration)

Config (
    prefix: ":bsh"
    shell: None, //bash, zsh, etc.
    stdout: "",
    max_line: 65535, //max lenght of the command result ( 65535 = 2 ^ 16)
    }
)