Scripts
This commit is contained in:
parent
60740173ac
commit
e181f411eb
|
@ -281,7 +281,7 @@ vim.api.nvim_create_autocmd("TextYankPost", {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd("BufWritePost", {
|
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||||
pattern = "*",
|
pattern = "*",
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.lsp.buf.formatting_seq_sync()
|
vim.lsp.buf.formatting_seq_sync()
|
||||||
|
|
|
@ -8,14 +8,14 @@ ls -la "$(dirname "$0")"
|
||||||
for file in "$(dirname "$0")/provision.d"/*; do
|
for file in "$(dirname "$0")/provision.d"/*; do
|
||||||
test -d "$file" && continue
|
test -d "$file" && continue
|
||||||
echo "Runnning $file..."
|
echo "Runnning $file..."
|
||||||
if <<< "$file" grep -q "AS_ROOT"; then
|
if grep -q "AS_ROOT" "$file"; then
|
||||||
if [ "$is_root" == "1" ]; then
|
if [ "$is_root" = "1" ]; then
|
||||||
"$file"
|
"$file"
|
||||||
else
|
else
|
||||||
sudo "$file"
|
sudo "$file"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ "$is_root" == "1" ]; then
|
if [ "$is_root" = "1" ]; then
|
||||||
sudo -u daniel "$file"
|
sudo -u daniel "$file"
|
||||||
else
|
else
|
||||||
"$file"
|
"$file"
|
||||||
|
|
Reference in a new issue