Git Product home page Git Product logo

termux.sh's Introduction

Here lie a few scripts that are useful for termux users.

Installation

zinit

zinit has"termux-info" \
    wait lucid light-mode \
    as"null" \
    atclone'DEST="${ZPFX}/bin" ./install.sh' \
    atpull"%atclone" \
    run-atpull \
    atdelete'for f in ${ZPFX}/bin/*
             do
               if readlink -f "$f" | \
                 grep -qE "$ZINIT[PLUGINS_DIR]/pschmitt.*termux.sh"
               then
                 rm -fv "$f"
               fi
             done' \
  for pschmitt/termux.sh

The above config requires $ZPFX/bin to be in your $PATH, which should be the case by default. Adapt at will.

Ansible

This repo holds wrappers for ansible. It uses an alpine proot image with ansible on board. Somehow this gets around the sem_open issue on Android ๐Ÿคท.

Setup

Run install.sh --full on your termux host. If you don't want or need the symlinks just run the ansible-install.sh script.

Install ansible from pip

To install the latest ansible version you can use the following:

ansible-install --pip latest

The same flag applies for the install script:

install.sh --full --pip latest

Install a specific version of ansible

By default, the latest pip version will be installed when using --pip latest. To install another one use:

ansible-install.sh --pip VERSION

As in:

ansible-install.sh --pip 2.9.1

This also applies to the global installer:

install.sh --full --pip 2.9.1

Add custom packages

To install custom packages inside the alpine proot you can do this as follows:

install.sh --full --pip 2.9.1 "git vim yadm"
ansible-install.sh --pip 2.9.1 "git vim yadm"

NOTE: This needs to be the last argument.

Customize the symlink location

By default all the symlinks will be created in the $HOME/bin directory. To set the destination path you need to set $DEST like so: DEST=$PREFIX/bin ./install.sh --full --pip

termux.sh's People

Contributors

pschmitt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

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.