Skip to content
View LKI's full-sized avatar
🚴
Cycling Addicted
🚴
Cycling Addicted

Block or report LKI

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
LKI/README.md

Lirian Su (LKI)'s Configuration

Build Status PyPI PyPI

Hello, I'm Lirian Su. My development environment is Windows, but I also frequently work on Unix systems (cloud servers or WSL). Since I often set up new environments, I created a dedicated project to sync my various configurations. Coincidentally, this project called LKI was later treated by GitHub as my self-introduction profile repository. If you're interested in learning more about me, feel free to read my introduction.

Configuration Style

I'm lazy and primarily use various shortcuts and hotkeys to execute commands. This project contains numerous abbreviations, but these changes are purely additive and don't alter existing command habits.

For convenient installation, I've written the configuration installation process as Python scripts. (So the first thing I do when I get a new computer is install a Python environment.)

Quick Installation

First, ensure you have Python 3.12+ in your environment, then use pip for quick installation:

pip install lki && lki install

This command supports Unix, MacOS, and Windows environments. If you encounter any issues, please report them as an Issue.

Usage Guide

~/.gitconfig contains numerous git aliases:

# View git configuration
$ cat ~/.gitconfig

# Basic git abbreviations
$ 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`

# Common git abbreviations
$ git cm    # amend last commit
$ git logg  # log in graph
$ git pd    # push dev with gitlab merge request created
$ git yes   # show what happened yesterday

~/.profile contains numerous bash aliases:

# View bash configuration
$ cat ~/.profile

# Common abbreviations
$ please visudo  # `sudo visudo`
$ g st  # `git status`
$ pv sync --dev  # `pipenv sync --dev`

# Compound subcommand abbreviations
$ dpa  # `docker ps -a`
$ kgp  # `kubectl get pods`
$ gcm  # `git cm`
$ gsh  # ssh through gate

# Personal shortcuts that you might not need
# I'm just showing you what commands I commonly run
$ svl  # go into my blog repo
$ dspm test  # run django test for zaihui/server project
$ stp  # exec bash into k8s cluster

For Vim configuration, see another project LKI/dotvim

There's much more functionality in this project, but the margin here is too small to contain it all. XD

License

Permissive MIT License, meaning you can make any changes, even change the author name to yours.

Questions?

No worries, whether it's questions about the project or about me personally, or if you think a certain command isn't user-friendly enough, feel free to submit an Issue directly in the project.

Pinned Loading

  1. LKI LKI Public

    LKI's dotfiles.

    Shell 34 13

  2. wechatpy/wechatpy wechatpy/wechatpy Public

    WeChat SDK for Python

    Python 4.2k 832

  3. lki.github.io lki.github.io Public

    My blog, with memes in issues and TILs in README.

    HTML 231 5

  4. chinese-calendar chinese-calendar Public

    判断一天是不是法定节假日/法定工作日(查看节假日安排)

    Python 1.3k 204