Skip to main content

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

Build Status PyPI PyPI

你好,我是苏子岳。 我的开发环境是 Windows 系统, 但我也时常会在 Unix 系统上游荡 (云服务器或者是 WSL)。 因为经常折腾环境, 所以我专门开了一个项目来同步我的各类配置。 很不巧,这个叫做 LKI 的项目后来被 GitHub 当作了同名自我介绍项目了, 假如你对我本人感兴趣,可以读一下我的自我介绍。

配置风格

我很懒, 主要使用各类缩写、热键执行命令。 这个项目包含了大量缩写, 但这些改动都是额外附加的, 它们并不改变原有的命令习惯。

为了方便安装, 我把配置安装过程写成了 python 脚本。 (所以我拿到电脑第一时间是装一个 python 环境)

快速安装

首先,确保环境中有 Python 3.7+,然后使用 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。

Metadata

Release files for lki 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lki 0.5.1
File Size Uploaded
lki-0.5.1.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lki 0.5.1
File Interpreter ABI Platform
lki-0.5.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 15.6 kB

Release files / lki-0.5.1.tar.gz

Download URL lki-0.5.1.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4ab9850b50cd50104ee922a95e1f9e226376ddf567d76964ce8de3f988b8bf16
BLAKE2b-256 checksum
How to use checksums
c470ae3a54c3c8e3723b8809d0728ad6c608acaaab917a92aff0d2b642c85962
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / lki-0.5.1-py2.py3-none-any.whl

Download URL lki-0.5.1-py2.py3-none-any.whl
Size 8.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
76fbb494905db4c597d597bd7f83e0e9522b3c9da4b1a46ce9fa51d736c217e1
BLAKE2b-256 checksum
How to use checksums
e93bf97f02b3c1210cc0005eb1c1fe531b158b9fcac0340a02457437f56167cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 release files

0.5.0

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.6

3 release files

0.1.5

3 release files

0.1.2

3 release files

0.1.0

3 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page