Define shell shortcut and execute it.
How to use
Install pyalias
$: pip install pyaliasAdd 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 sshExecute 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 !
Metadata
Release files for pyalias 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyalias-1.0.0.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyalias-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.0 kB
Release files / pyalias-1.0.0.tar.gz
| Download URL | pyalias-1.0.0.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
476b8e27c97ba1e4582907804b76b4b22483a58f19a5e09c35709d8502cfc7ce
|
|
BLAKE2b-256 checksum How to use checksums |
f0a548fe31245b074785eddebfb2eecf67967e02d86f091fe4c04cadd6467836
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pyalias-1.0.0-py3-none-any.whl
| Download URL | pyalias-1.0.0-py3-none-any.whl |
|---|---|
| Size | 2.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
438a970041e06736747e4b4168acf34fc21beb048a816819304d1b0061e3eb3c
|
|
BLAKE2b-256 checksum How to use checksums |
acbc80f725d95a5e68fb4cf9458424e8d7fb9b8d98b4169982a4e0d73b812dda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|