feat: updates

This commit is contained in:
2025-03-31 12:18:00 +03:00
parent 62a28ed6c6
commit 777c988bc8
4 changed files with 36 additions and 21 deletions

View File

@@ -267,7 +267,13 @@ return {
enabled = true,
notify_errors = false, -- if there is an error whilst running then notify the user
-- open_cmd = "tabedit", -- command to use to open the log buffer
open_cmd = "belowright vnew"
open_cmd = "belowright vnew",
filter = function(line)
if line:match("^D/EGL") or line:match("^E/libEGL") then
return false
end
return true
end,
},
dev_tools = {
autostart = false, -- autostart devtools server if not detected

View File

@@ -119,21 +119,31 @@ install:
opts:
tap: jesseduffield/lazygit
- name: lazygit
type: shell
platforms:
only: ['linux']
check_has_update: |
LATEST=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
CURRENT=$(lazygit --version | awk -F'[,=]' '{print $6}')
test "$LATEST" != "$CURRENT"
type: github-release
# platforms:
# only: ['linux']
opts:
command: |
cd $(mktemp -d)
VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${VERSION}_Linux_x86_64.tar.gz"
tar xf lazygit.tar.gz lazygit
sudo install lazygit /usr/local/bin
rm -rf lazygit.tar.gz lazygit
repository: jesseduffield/lazygit
strategy: tar
destination: ~/.cache/bin
# destination: /usr/local/bin
download_filename: lazygit_{tag}_Linux_x86_64.tar.gz
# - name: lazygit
# type: shell
# platforms:
# only: ['linux']
# check_has_update: |
# LATEST=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
# CURRENT=$(lazygit --version | awk -F'[,=]' '{print $6}')
# test "$LATEST" != "$CURRENT"
# opts:
# command: |
# cd $(mktemp -d)
# VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
# curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${VERSION}_Linux_x86_64.tar.gz"
# tar xf lazygit.tar.gz lazygit
# sudo install lazygit /usr/local/bin
# rm -rf lazygit.tar.gz lazygit
- name: lazygit-config
type: group
tags: config

View File

@@ -163,3 +163,4 @@ alias p..="pushd .."
alias ollama-serve="brew services start ollama"
alias ldc="lazydocker"
alias opsign="eval \$(op signin)"
alias emulator="\$HOME/Library/Android/sdk/emulator/emulator"

View File

@@ -2,15 +2,14 @@
SCAFFOLDS_DIR="$DOTFILES/scaffolds"
tpl () {
tpl() {
declare -A tpl_aliases=(
ef "editorfiles"
ef "editorfile"
gh "github"
ghp "github.pnpm"
)
declare -A tpl_no_name=(
editorfiles "1"
editorfile "1"
gh "1"
ghp "1"
)
@@ -22,7 +21,7 @@ tpl () {
fi
if [[ "${tpl_no_name[$key]}" -eq 1 ]]; then
name="- $args"
name="$args -"
else
if [[ -z "$args" ]]; then
echo_red "Usage: tpl $key <name>"
@@ -32,4 +31,3 @@ tpl () {
simple-scaffold -g chenasraf/templates -k $key $args
}