touch ~/.zsh_functions
vim ~/.zsh_functions
function jcurl() {
curl -s "$@" | json | pygmentize -l json
}
function tojson(){
touch ~/.zsh_functions
vim ~/.zsh_functions
function jcurl() {
curl -s "$@" | json | pygmentize -l json
}
function tojson(){
call plug#begin('~/.vim/plugged') | |
Plug 'SirVer/ultisnips' | |
Plug 'honza/vim-snippets' | |
Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' } | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } |
# Copyright (c) 2016-2018 Ming Qin (覃明) <https://github.com/QinMing> | |
# Open source under MIT LICENSE. | |
lazy_load() { | |
# Act as a stub to another shell function/command. When first run, it will load the actual function/command then execute it. | |
# E.g. This made my zsh load 0.8 seconds faster by loading `nvm` when "nvm", "npm" or "node" is used for the first time | |
# $1: space separated list of alias to release after the first load | |
# $2: file to source | |
# $3: name of the command to run after it's loaded | |
# $4+: argv to be passed to $3 |
This is a collection of snippets, not a comprehensive guide. I suggest you start with Operational PGP.
Here is an incomplete list of things that are different from other approaches: