Dotfiles V1.4.3

Improved LaTeX table snippet
This commit is contained in:
2026-03-23 10:24:31 +01:00
parent 87075afbd4
commit 2e0989ce0d
2 changed files with 31 additions and 2 deletions
+2 -2
View File
@@ -134,7 +134,7 @@ local item = s(
table.insert(autosnippets, item) table.insert(autosnippets, item)
local tableenv = s( local tableenv = s(
{ trig = "table(%d+) (%d+)", regTrig = true, desc = "Table Environment" }, { trig = "table(%d+) (%d+);", regTrig = true, desc = "Table Environment" },
fmt( fmt(
[[ [[
\begin{{tabular}}{{|{}}} \begin{{tabular}}{{|{}}}
@@ -193,7 +193,7 @@ local tableenv = s(
} }
) )
) )
table.insert(snippets, tableenv) table.insert(autosnippets, tableenv)
local pdf = s( local pdf = s(
{ trig = "-pdf", desc = "Insert PDF" }, { trig = "-pdf", desc = "Insert PDF" },
Executable
+29
View File
@@ -0,0 +1,29 @@
#!/bin/zsh
echo "========================"
echo " Setup Script "
echo "========================"
# Check if running on macOS or Linux
if [[ "$(uname)" == "Darwin" ]]; then
OS="macOS"
elif [[ "$(uname)" == "Linux" ]]; then
OS="Linux"
else
error "Unsupported OS: $(uname)"
exit 1
fi
success "Detected OS: $OS"
if [[ "$OS" == "macOS" ]]; then
echo "==========================="
echo " Installing Brew "
echo "==========================="
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
else
echo "Maybe someday Linux..."
fi