Skip to content

zlqm/pyalias

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyalias

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 !
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages