Skip to main content

shell shortcut

Project description

Define shell shortcut and execute it.

How to use

  1. Install pyalias

    $: pip install pyalias
  2. Add a configure file at ~/.config/pyalias.yaml .. code:

    - name: test
      description: functional test
      command: echo 'test'
    - name: ssh
      description: test ssh
      command: sshpass -p "password" ssh user@host4
  3. List shortcut

    $ pyalias list
    * [test] functional test
    * [ssh] test ssh
  4. Execute shortcut

    $ pyalias ssh
    Welcome to Ubuntu 20.04.1 LTS (GNU/Linux x86_64)
    
     * Documentation:  https://help.ubuntu.com
     * Management:     https://landscape.canonical.com
     * Support:        https://ubuntu.com/advantage
    
    Welcome to Alibaba Cloud Elastic Compute Service !

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyalias-1.0.0.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

pyalias-1.0.0-py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page