From d4ef839a07c6eabb06b860f1a9b7eb5995c43b52 Mon Sep 17 00:00:00 2001 From: Zackarias Montell Date: Tue, 27 Jan 2026 12:38:11 +0100 Subject: [PATCH] Set line endings to lf for .sh --- .profile.ps1 | 20 ++++++++++++++++++++ AppData/Local/nvim/lua/config/options.lua | 7 +++++++ requirements.ps1 | 5 +++-- 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/.profile.ps1 b/.profile.ps1 index ea933c5..f336ed1 100644 --- a/.profile.ps1 +++ b/.profile.ps1 @@ -17,6 +17,26 @@ Set-Alias -Name python3 -Value python # Functions +function d-up { + docker compose up --build -d +} +function d-bash { + docker exec -it "$1" /bin/bash +} +function d-down { + docker compose down -v +} +function d-down-up { + d-down + d-up +} +function d-logs { + docker compose logs -f -t +} +function d-ps { + docker compose ps -a +} + function cdli { Set-Location "C:\repos\litium" } diff --git a/AppData/Local/nvim/lua/config/options.lua b/AppData/Local/nvim/lua/config/options.lua index c08ef0e..b2be502 100644 --- a/AppData/Local/nvim/lua/config/options.lua +++ b/AppData/Local/nvim/lua/config/options.lua @@ -64,3 +64,10 @@ vim.opt.scrolloff = 10 -- instead raise a dialog asking if you wish to save the current file(s) -- See `:help 'confirm'` vim.opt.confirm = true + +-- set LF instead of CRLF +vim.opt.fileformats = { 'unix', 'dos' } +vim.api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, { + pattern = '*.sh', + command = 'setlocal ff=unix', +}) diff --git a/requirements.ps1 b/requirements.ps1 index 8decdd4..aeab961 100644 --- a/requirements.ps1 +++ b/requirements.ps1 @@ -157,7 +157,8 @@ $packages = @( "Python.Python.3.10", # isort "JernejSimoncic.Wget", # nvim "7zip.7zip" # nvim - "rustlang.rustup" + "rustlang.rustup", + "Mozilla.Firefox" ) $ExtraPackages = @( "mRemoteNG.mRemoteNG", @@ -236,7 +237,7 @@ if ($Flags.FontsEnabled) Set-Location ~\fonts | Out-Null unzip JetBrainsMono.zip Remove-Item JetBrainsMono.zip - $FontsPath = "~\fonts" + $FontsPath = "$HOME\fonts" $shell = New-Object -ComObject Shell.Application $fonts = $shell.Namespace(0x14)