Compare commits

..

5 Commits

3 changed files with 18 additions and 4 deletions

View File

@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: checkout repo - name: checkout repo
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
@ -49,7 +49,7 @@ jobs:
runs-on: macos-12 runs-on: macos-12
steps: steps:
- name: checkout repo - name: checkout repo
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
@ -94,7 +94,7 @@ jobs:
sudo apt-get -y remove curl vim python3 sudo apt-get -y remove curl vim python3
- name: checkout repo - name: checkout repo
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
@ -116,7 +116,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: checkout repo - name: checkout repo
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0

View File

@ -16,6 +16,7 @@ set autoindent
set smartindent set smartindent
set expandtab "spaces instead of tabs set expandtab "spaces instead of tabs
set tabstop=4 softtabstop=4 shiftwidth=4 set tabstop=4 softtabstop=4 shiftwidth=4
autocmd FileType c,cpp,nix,yaml setlocal tabstop=2 softtabstop=2 shiftwidth=2
set backspace=indent,eol,start set backspace=indent,eol,start
set number "line numbers set number "line numbers
set history=1000 set history=1000

13
.zshrc2
View File

@ -67,7 +67,15 @@ ANTIGEN_PLUGINS+=(
"extract" "extract"
"fzf" "fzf"
"git" "git"
"magic-enter"
"per-directory-history"
"pip"
"podman"
"python"
"ripgrep" "ripgrep"
"rsync"
"systemd"
"timer"
"tmux" "tmux"
"ufw" "ufw"
"z" "z"
@ -115,6 +123,11 @@ alias "cbds"='curl https://www.baidu.com'
alias "gdebug"='git add -A; git commit --allow-empty -m "bug fix ($(date))"' alias "gdebug"='git add -A; git commit --allow-empty -m "bug fix ($(date))"'
alias "ls"='ls --color=tty' alias "ls"='ls --color=tty'
alias "l"='ls -lAGh --time-style="+%y-%m-%d %H:%M"' alias "l"='ls -lAGh --time-style="+%y-%m-%d %H:%M"'
alias "jc"='journalctl'
alias "jce"='jc -e'
alias "jceu"='jc -eu'
alias "jcf"='jc -f'
alias "jcfu"='jc -fu'
gbes() { git for-each-ref --sort=-committerdate refs/heads refs/remotes --format="%(authordate:format:%y-%m-%d.%a %H:%M %z)|%(color:red)%(objectname:short)|%(color:yellow)%(refname:short)%(color:reset)|%(color:reset)%(authorname): %(color:green)%(subject)" --color=always | column -ts"|" | less -FX } gbes() { git for-each-ref --sort=-committerdate refs/heads refs/remotes --format="%(authordate:format:%y-%m-%d.%a %H:%M %z)|%(color:red)%(objectname:short)|%(color:yellow)%(refname:short)%(color:reset)|%(color:reset)%(authorname): %(color:green)%(subject)" --color=always | column -ts"|" | less -FX }
sagt() { eval "$($DOTFILES/tools/sagent.sh $@)" } sagt() { eval "$($DOTFILES/tools/sagent.sh $@)" }