Giter Club home page Giter Club logo

scripts's Introduction

scripts

A collection of ZSH scripts that make my life easier

  1. pyinit / pyactivate: Simple tools for managing python virtual environments.
    • Stores environment in a .venv folder. pyinit to create and activate, pyactivate to activate.
    • pyinit <dirname> creates an environment in <dirname>, creating the directory if it doesn't exist.
    • pyinit without arguments creates an environment in the current directory.

Example GIF for pyinit

Example GIF for pyactivate

  1. srczsh re-sources ~/.zshrc. Pretty simple but saves some keystrokes.

  2. myip echoes the IP address of en0.

  3. flag is not mine, it's from @gpiper's gist from SO. It grabs the documentation for a specific flag from a man page.

  4. cptemp and mvtemp create a new directory in /tmp/ in the form TEMP_XXXX. They then cp or mv their arguments to the temp folder. If they're given the -n flag, they will echo the new path. Otherwise, they cd you into it. Useful for creating disposable testing environments.

  5. cltemp removes all directories in /tmp/ that fit the form TEMP_XXXX. It shows the contents of these directories using tree(1) to confirm first. If you don't have and don't want to install tree, you can replace it with an ls or a find.

  6. hl is a simple tool for finding and highlighting text from stdin. It works like this: hl <color> <token>. If given the -l flag, it will highlight entire lines. It has definitions for red, green, yellow, blue, magenta, and cyan. You can also prepend a b to those colors to change the background color (highlight) of the text:

hl Example 1

hl Example 2

hl Example 3

scripts's People

Contributors

alexaschor avatar

Watchers

 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.