shellcut

Shell shortcuts


Keywords
shell
License
GPL-3.0
Install
pip install shellcut==0.2.1

Documentation

Shellcut

Shell shortcuts

Automate your frequent commands by pasting a url/some string and performing a simple string replacement.

Example

Let's call your program u. Calling

$ u https://github.com/kennethreitz/requests

will clone this repo to /tmp/ and change the directory into it. The "magic" is performed with a config file like this:

---
shortcuts:
- name: Clone github repo
  match: https://github.com/{}/{}
  shell: |
    cd /tmp/
    git clone git@github.com:{}/{}.git