Giter Site home page Giter Site logo

tools's Introduction

Shell Tools

Command line utilities and wrappers, useful to keep the programmers away from the GUI devil.

These tools are intended for a ZSH environment, if you still use BASH update yourself.

Windows users should install and configure WSL (1 or 2); no Unix prompt, no tools.

Base installation

Clone the project and add the bin folder to the PATH before the system /bin and /usr/bin.

The wrapper tools require the main tools (mvn, svn, kubectl, etc.), install them as need.

Install the required open source tools according to your operating system.

MacOS required tools

brew install fzf bat jq yq dialog git-delta

Linux/WSL required tools

sudo apt update
sudo apt install fzf bat jq dialog

Download and install deb package from https://github.com/dandavison/delta/releases/latest

Linux specific installations

snap install yq

WSL specific installations

sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
sudo chmod a+x /usr/local/bin/yq

Environment configuration

Some tools are wrappers for the original executable, and must be provided with the absolute path of their original counterpart; if not configured, they assume a default, suitable only for a standard Linux/WSL environment (MacOS requires configuration).

Some tools need only a *_HOME variable, and will stop with an error if missing.

Place the following snippet in your .zshrc/.zprofile script, and edit it according to your configuration.

NOTE: Every path MUST be absolute.

export KUBECTL_EXECUTABLE=/usr/bin/kubectl
export MAVEN_EXECUTABLE=/usr/bin/maven
export SVN_EXECUTABLE=/usr/bin/svn
export KAFKA_HOME=...
export FLINK_HOME=...
export ZOOKEEPER_HOME=...

# Ubuntu/Debian systems
alias bat=batcat

Edit function

Some tools emit a command line snippet. I you want the text automatically placed on the command line, add the following function to your .zshrc

edit() {
    print -z $( $* )
}

Prepend edit to your command line to capture and edit the tool output.

AF

tools's People

Contributors

antoniofranzese avatar shade87 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

tools's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.