Set line endings to lf for .sh
This commit is contained in:
20
.profile.ps1
20
.profile.ps1
@@ -17,6 +17,26 @@ Set-Alias -Name python3 -Value python
|
|||||||
|
|
||||||
|
|
||||||
# Functions
|
# 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 {
|
function cdli {
|
||||||
Set-Location "C:\repos\litium"
|
Set-Location "C:\repos\litium"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,3 +64,10 @@ vim.opt.scrolloff = 10
|
|||||||
-- instead raise a dialog asking if you wish to save the current file(s)
|
-- instead raise a dialog asking if you wish to save the current file(s)
|
||||||
-- See `:help 'confirm'`
|
-- See `:help 'confirm'`
|
||||||
vim.opt.confirm = true
|
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',
|
||||||
|
})
|
||||||
|
|||||||
@@ -157,7 +157,8 @@ $packages = @(
|
|||||||
"Python.Python.3.10", # isort
|
"Python.Python.3.10", # isort
|
||||||
"JernejSimoncic.Wget", # nvim
|
"JernejSimoncic.Wget", # nvim
|
||||||
"7zip.7zip" # nvim
|
"7zip.7zip" # nvim
|
||||||
"rustlang.rustup"
|
"rustlang.rustup",
|
||||||
|
"Mozilla.Firefox"
|
||||||
)
|
)
|
||||||
$ExtraPackages = @(
|
$ExtraPackages = @(
|
||||||
"mRemoteNG.mRemoteNG",
|
"mRemoteNG.mRemoteNG",
|
||||||
@@ -236,7 +237,7 @@ if ($Flags.FontsEnabled)
|
|||||||
Set-Location ~\fonts | Out-Null
|
Set-Location ~\fonts | Out-Null
|
||||||
unzip JetBrainsMono.zip
|
unzip JetBrainsMono.zip
|
||||||
Remove-Item JetBrainsMono.zip
|
Remove-Item JetBrainsMono.zip
|
||||||
$FontsPath = "~\fonts"
|
$FontsPath = "$HOME\fonts"
|
||||||
|
|
||||||
$shell = New-Object -ComObject Shell.Application
|
$shell = New-Object -ComObject Shell.Application
|
||||||
$fonts = $shell.Namespace(0x14)
|
$fonts = $shell.Namespace(0x14)
|
||||||
|
|||||||
Reference in New Issue
Block a user