Skip to content

Instantly share code, notes, and snippets.

View origamirabbit's full-sized avatar

riverliu origamirabbit

View GitHub Profile

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@origamirabbit
origamirabbit / ripgrep-guide.md
Last active April 13, 2023 12:06
BurntSushi / ripgrep GUIDE.md

User Guide

This guide is intended to give an elementary description of ripgrep and an overview of its capabilities. This guide assumes that ripgrep is installed and that readers have passing familiarity with using command line tools. This also assumes a Unix-like system, although most commands are probably easily translatable to any command line shell environment.

@origamirabbit
origamirabbit / rust_snippets.json
Last active January 26, 2023 16:47
vscode rust-analyzer custom snippets
"rust-analyzer.completion.snippets.custom": {
"Arc::new": {
"body": "Arc::new(${receiver})",
"description": "Put the expression into an `Arc`",
"postfix": "arc",
"requires": "std::sync::Arc",
"scope": "expr"
},
"Box::pin": {
"body": "Box::pin(${receiver})",