Merge branch 'master' of ssh://git.trj.tw:10022/jay/dotter

This commit is contained in:
Jay 2023-01-19 00:04:42 +08:00
commit 39e1ec1c7f
4 changed files with 32 additions and 5 deletions

View File

@ -29,9 +29,9 @@ window:
# Number of lines/columns (not pixels) in the terminal. The number of columns
# must be at least `2`, while using a value of `0` for columns and lines will
# fall back to the window manager's recommended size.
#dimensions:
# columns: 0
# lines: 0
dimensions:
columns: 210
lines: 65
# Window position (changes require restart)
#
@ -152,7 +152,7 @@ font:
#style: Bold Italic
# Point size
size: 10.0
size: 8.0
# Offset is the extra space around each character. `offset.y` can be thought
# of as modifying the line spacing, and `offset.x` as modifying the letter

View File

@ -86,7 +86,6 @@ Plug 'rust-lang/rust.vim'
Plug 'danilo-augusto/vim-afterglow'
Plug 'vim-scripts/TaskList.vim'
Plug 'google/vim-jsonnet'
Plug 'github/copilot.vim'
call plug#end()

View File

@ -9,6 +9,7 @@ Host git.lawsnote.com
HostName git.lawsnote.com
Host dev
User jay
HostName 192.168.200.15
Host vpn

View File

@ -77,3 +77,30 @@ if [ -f '/Users/jay/apps/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/jay/ap
alias docker="lima nerdctl"
export DOCKER_HOST="unix:///Users/jay/.lima/docker/sock/docker.sock"
function ln-image-tags {
if [ -z "$1" ]; then
echo "usage: ln-image-tags <image-name>"
exit 1
fi
curlie -L https://registry.lawsnote.com/v2/$1/tags/list
}
function ln-save-image {
if [ -z "$1" ]; then
echo "usage: ln-save-image <image-name:tag>"
exit 1
fi
docker-save --rm -p -o . -i registry.lawsnote.com/$1
}
function minio-size {
if [ -z "$1" ]; then
echo "usage: minio-size <alias or alias/bucket-path>"
exit 1
fi
mc ls -r --json $1 | jq -s 'map(.size) | add' | numfmt --to=iec-i --suffix=B --padding=7
}