Skip to content

Commit 0392703

Browse files
committed
feat: more default shortcuts, use latest bootstrap
1 parent 846ebc2 commit 0392703

13 files changed

+33
-12
lines changed

.gitignore

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
# What: all powershell bootstrap stuff
2-
# Why: fetched by build script automatically
1+
# Any backup file of text editors
2+
*.bak
3+
4+
# bootstrap files are downloaded during installation
35
/.bootstrap

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 - Karsten A. M. Guenther ([email protected])
3+
Copyright (c) 2024 - Karsten A. M. Guenther ([email protected])
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

bin/install.ps1

+9-7
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
#>
55

66
param (
7-
[switch]$InPlace
7+
[Parameter(Mandatory = $false, HelpMessage = 'Install in place without cloning/updating the repository. (Switch, default: false)')]
8+
[switch]$InPlace = $false
89
)
910

1011
Function Copy-Config {
@@ -40,17 +41,18 @@ $repoUrl = "https://github.com/xxthunder/shortcuts.git"
4041
$shortcutsDir = "$Env:USERPROFILE\shortcuts"
4142
$branch = "develop"
4243

43-
$bootstrap_git_tag = "v1.14.0"
44+
$bootstrap_git_tag = "v1.14.2"
4445

45-
if (-not $InPlace) {
46-
# Load utility methods
47-
Invoke-RestMethod -Uri https://raw.githubusercontent.com/avengineers/bootstrap/refs/tags/$bootstrap_git_tag/utils.ps1 | Invoke-Expression
46+
# Load utility methods
47+
Invoke-RestMethod -Uri https://raw.githubusercontent.com/avengineers/bootstrap/refs/tags/$bootstrap_git_tag/utils.ps1 | Invoke-Expression
4848

49+
if (-not $InPlace) {
4950
# Get the latest commit of this repository
5051
CloneOrPullGitRepo -RepoUrl $repoUrl -TargetDirectory $shortcutsDir -Branch $branch
5152

5253
Push-Location $shortcutsDir
53-
} else {
54+
}
55+
else {
5456
# Run in place, no cloning
5557
Push-Location $PSScriptRoot.TrimEnd("\bin")
5658
}
@@ -63,7 +65,7 @@ try {
6365

6466
# Create directory for private shortcuts
6567
$shortcutsPrivateDir = "$Env:USERPROFILE\shortcuts_private"
66-
New-Item -Path $shortcutsPrivateDir -ItemType Directory -Force
68+
New-Directory $shortcutsPrivateDir
6769

6870
# Start Keypirinha
6971
& "$Env:USERPROFILE\scoop\apps\keypirinha\current\keypirinha.exe"

links/AI - Bing Chat.url

-2
This file was deleted.

links/AI - copilot.microsoft.com.url

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[InternetShortcut]
2+
URL=https://copilot.microsoft.com

links/DeepL Translator.url

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[InternetShortcut]
2+
URL=https://www.deepl.com/translator

links/Half-arsed Agile Manifesto.url

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[InternetShortcut]
2+
URL=https://www.halfarsedagilemanifesto.org/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[InternetShortcut]
2+
URL=https://manifesto.softwarecraftsmanship.org/

links/Speed Test - Google Fiber.url

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[InternetShortcut]
2+
URL=https://fiber.google.com/speedtest/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[InternetShortcut]
2+
URL=https://crccalc.com/

links/github.com - avengineers.url

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[InternetShortcut]
2+
URL=https://github.com/avengineers

windows/disableScreenSaver.cmd

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@echo off
2+
set "THIS_ROOT=%~dp0"
3+
set "THIS_BASE_NAME=%~n0"
4+
5+
regedit /S %THIS_ROOT%%THIS_BASE_NAME%.reg

windows/disableScreenSaver.reg

482 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)