shell shortcut
Project description
Define shell shortcut and execute it.
How to use
Install pyalias
$: pip install pyalias
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
List shortcut
$ pyalias list * [test] functional test * [ssh] test ssh
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
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file pyalias-1.0.0.tar.gz
.
File metadata
- Download URL: pyalias-1.0.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 476b8e27c97ba1e4582907804b76b4b22483a58f19a5e09c35709d8502cfc7ce |
|
MD5 | 80c4e6e8b365ffcb6ce410acd44b6360 |
|
BLAKE2b-256 | f0a548fe31245b074785eddebfb2eecf67967e02d86f091fe4c04cadd6467836 |
File details
Details for the file pyalias-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: pyalias-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 438a970041e06736747e4b4168acf34fc21beb048a816819304d1b0061e3eb3c |
|
MD5 | c548a6df17cd69e42607f7909ed8d6a8 |
|
BLAKE2b-256 | acbc80f725d95a5e68fb4cf9458424e8d7fb9b8d98b4169982a4e0d73b812dda |