generated from Templates/Baseline
Merge branch 'master' into metaReadme
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/push/master Pipeline was successful
ci/woodpecker/push/next Pipeline was successful
ci/woodpecker/pr/master Pipeline was successful
ci/woodpecker/pr/next Pipeline was successful
All checks were successful
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/push/master Pipeline was successful
ci/woodpecker/push/next Pipeline was successful
ci/woodpecker/pr/master Pipeline was successful
ci/woodpecker/pr/next Pipeline was successful
This commit is contained in:
commit
3495b5120c
|
@ -15,6 +15,8 @@ function showHelp() {
|
|||
powershell Installs latest PowerShell LTS version.
|
||||
-h Prints this help messagee.
|
||||
disablemotd Disables hint in new bash terminal
|
||||
setcode Sets VS Code user setting with basic (Fira Code)
|
||||
|
||||
Example 1: install-devruntime dotnet
|
||||
Example 2: install devruntime golang nodejs
|
||||
HELP
|
||||
|
@ -123,6 +125,23 @@ function instPwsh() {
|
|||
echo "done." "PowerShell"
|
||||
}
|
||||
|
||||
function setCodeSettings() {
|
||||
CODEFILE="$HOME/data/User/settings.json"
|
||||
say "Setting VScode base settings.($CODEFILE)"
|
||||
cat <<EOF | tee "$CODEFILE"
|
||||
{
|
||||
"workbench.colorTheme": "One Dark Pro Darker",
|
||||
"window.menuBarVisibility": "classic",
|
||||
"editor.fontFamily": "'FiraCode Nerd Font', 'FiraCode NF', Consolas, 'Courier New', monospace",
|
||||
"terminal.integrated.fontFamily": "'FiraCode Nerd Font Mono', 'FiraCode NFM', Consolas, monospace",
|
||||
"editor.fontLigatures": true,
|
||||
"workbench.iconTheme": "vscode-icons",
|
||||
"extensions.autoUpdate": false,
|
||||
"git.confirmSync": false
|
||||
}
|
||||
EOF
|
||||
}
|
||||
|
||||
function main() {
|
||||
if [[ "$#" == "0" ]]; then
|
||||
showHelp
|
||||
|
@ -144,6 +163,9 @@ function main() {
|
|||
elif [[ "$i" == "disablemotd" ]]; then
|
||||
disableMotd
|
||||
exit 0
|
||||
elif [[ "$i" == "setcode" ]]; then
|
||||
setCodeSettings
|
||||
exit 0
|
||||
else
|
||||
sayE "Unknown parameter value given!($i)."
|
||||
showHelp
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
complete -W "disablemotd dotnet golang nodejs powershell -h" install-devruntime
|
||||
complete -W "disablemotd dotnet golang nodejs powershell setcode -h" install-devruntime
|
||||
|
|
Loading…
Reference in New Issue
Block a user