Go to file
Ceda EI e90ea86d15 Add clipboard mode. 2018-11-16 15:26:30 +05:30
LICENSE Initial commit 2018-11-07 10:56:15 +01:00
README.md Add clipboard mode. 2018-11-16 15:26:30 +05:30
mbin.sh Add clipboard mode. 2018-11-16 15:26:30 +05:30

README.md

mkr-bin-client

Command line client for mkr/bin. Uses bin.mkr.pw as the default instance.

Requirements

  • xclip (for copying url into clipboard)
  • curl

Usage

Copy mbin.sh to your PATH or add an alias to point to the absolute path of mbin.sh.

  some_command | mbin.sh
  mbin.sh # Opens in interactive mode.
  mbin.sh -c # Posts clipboard contents to bin
  mbin.sh --clipboard # Posts clipboard contents to bin

Customization

  • To use custom instance, export MKR_BIN variable.
    • Add export MKR_BIN="https://bin.example.com/" (Ensure to keep the trailing slash) in your shell rc (~/.bashrc if using bash).
  • To use an editor other than vim in interactive mode, export EDITOR variable.
    • Add export EDITOR=micro in your shell rc (~/.bashrc if using bash).