Skip to main content

connect Lirian's useful commands

Project description

Lirian Su(LKI)'s Configuration, 我的配置

Build Status PyPI PyPI

开发环境是 Windows 系统, 但我也时常会在 Unix 系统上游荡。 因为经常折腾环境, 所以我专门开了一个项目来同步我的各类配置。

配置风格

我很懒, 我的大部分命令都是各种缩写。 但这些改动都是附加项, 不会变动原有的任何命令习惯。

不过 :) 我的环境里,python 是必选项噢。

快速安装

首先,确保环境中有 Python 3.5+,然后使用 pip 快速安装:

pip install lki && lki install

本命令同时支持 Unix, MacOS, Windows 环境 发现有问题就给我报 Issue

使用指南

~/.gitconfig 中包含了大量的 git alias:

# 查看 git 配置
$ cat ~/.gitconfig

# git 的基础缩写
$ git ci  # `git commit`
$ git br  # `git branch`
$ git pf  # `git push -f`
$ git sv  # `git save` <=> `git stash`
$ git ld  # `git load` <=> `git stash pop`

# git 的常用缩写
$ git cm    # amend last commit
$ git logg  # log ing graph
$ git pd    # push dev with gitlab merge request created
$ git yes   # show what happened yesterday

~/.profile 中包含了大量的 bash alias:

# 查看 bash 配置
$ cat ~/.profile

# 常用缩写
$ please visudo  # `sudo visudo`
$ g st  # `git status`
$ pv sync --dev  # `pipenv sync --dev`

# 子命令复合缩写
$ dpa  # `docker ps -a`
$ kgp  # `kubectl get pods`
$ gcm  # `git cm`
$ gsh  # ssh through gate

# 个人向的,你们用不上的缩写
# 我写这就是给你们看看我平常跑那些命令
$ svl  # go into my blog repo
$ dspm test  # run django test for zaihui/server project
$ stp  # exec bash into k8s cluster

Vim 的配置,参见另外一个项目 LKI/dotvim

关于本项目的功能还有很多, 但是这里的空白太少我写不下了 XD

开源协议

宽松的 MIT License, 意味着你可以做任何更改, 甚至把作者名都改成你。

我有问题要问

没关系,不论是对项目的问题还是对我个人的问题, 或者是你觉得哪条命令不够好用, 都欢迎来项目里直接提 Issue。

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

lki-0.3.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

lki-0.3.1-py2.py3-none-any.whl (7.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file lki-0.3.1.tar.gz.

File metadata

  • Download URL: lki-0.3.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for lki-0.3.1.tar.gz
Algorithm Hash digest
SHA256 22c9ab770744bfd87c529a1e34877b38286c082fef635d4fef0f177be06593f6
MD5 f4d4d84e074b2bdda903e4ed6ba39f32
BLAKE2b-256 1d54f1c088f6ab92768fba1eb52c0168bd2cd6b9207756a834e2e2a55b35e9ab

See more details on using hashes here.

File details

Details for the file lki-0.3.1-py2.py3-none-any.whl.

File metadata

  • Download URL: lki-0.3.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

File hashes

Hashes for lki-0.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 aa3916085b0606b0f074ecb88c462d9d32e71b4ff035f6464161b65b9e78e805
MD5 89c241a0763dc865328363f7f5c7bd53
BLAKE2b-256 08436e6d45726dd0ce91de27886771c5afd6003df2c6bf7f53e691212fe9651d

See more details on using hashes here.

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