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

Block or report liriansu-opus

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 is supported. This note will only be visible to you.
Report abuse

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

Report abuse
liriansu-opus/README.md

Lirian Su's Configuration

Build Status PyPI PyPI

Hello, I'm Lirian Su. I work primarily on macOS these days, and frequently on Unix systems too (cloud servers or WSL). Because I set up new environments so often, I keep this project to sync my various configurations across every machine I touch.

This repo happens to share my GitHub username, so GitHub also renders its README as my profile page. If you'd like to know more about me, feel free to read my introduction.

Configuration Style

I'm lazy and primarily drive everything through shortcuts and hotkeys. This project defines numerous abbreviations, but the changes are purely additive — they don't alter any existing command habits.

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

Quick Installation

First, ensure you have Python 3.12+ in your environment, then install with pip:

pip install lki && lki install

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

macOS Packages

On a new Mac, after installing Homebrew, restore every tap, formula, and cask from the committed Brewfile with brew bundle --file ~/.lki/Brewfile. After installing new packages, refresh the list with brew bundle dump --file ~/.lki/Brewfile --force.

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
$ g st           # `git status`
$ reload         # re-source ~/.profile after an edit
$ pv sync --dev  # `pipenv sync --dev`

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

# fzf-powered helpers that I reach for constantly
$ ws <keyword>    # jump into a matching repo under ~/code/src
$ csh <host>      # ssh into a matching host from ~/.ssh/*config
$ kbash <pod>     # exec bash into a matching k8s pod

For Vim configuration, see another project liriansu-opus/dotvim

There's much more 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 your own.

Questions?

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

Pinned Loading

  1. mega-repo mega-repo Public

    Mega Repo: The ultimate, unified context layer for your AI Harness.

    Shell 3

  2. liriansu-opus liriansu-opus Public

    LKI's dotfiles.

    Shell 34 13

  3. chinese-calendar chinese-calendar Public

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

    Python 1.4k 207

  4. liriansu-opus.github.io liriansu-opus.github.io Public

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

    HTML 246 5

  5. wechatpy/wechatpy wechatpy/wechatpy Public

    WeChat SDK for Python

    Python 4.3k 827