Skip to content

Commit 2375cb6

Browse files
committed
Don't ask before adding shortcuts
1 parent f41f636 commit 2375cb6

3 files changed

Lines changed: 7 additions & 24 deletions

File tree

docs/install.ps1

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -232,16 +232,8 @@ Function Installer {
232232
Add-AppToPath
233233
Write-Output "You may have seen our documentation mention shortcuts like 'fknode', 'fkn', 'fkclean'..."
234234
Write-Output "These are made by creating a bunch of scripts (fknode.bat, fkn.bat...) next to the main installation."
235-
Write-Output "We highly recommend them, but JUST IN CASE they conflicted with any other local command, we let you choose."
236-
237-
$response = Read-Host "Do you wish to create these shortcuts? [Y/N]"
238-
239-
if ($response -match '^[Yy]$') {
240-
New-Shortcuts
241-
}
242-
else {
243-
Write-Output "Okay, we WON'T create shortcuts. Beware, as documentation and help menus might still use them to refer to commands."
244-
}
235+
Write-Output "We will create a bunch of shell scripts next to the main installation for these to work."
236+
New-Shortcuts
245237
Write-Output "Installed successfully! Restart your terminal for it to work."
246238
}
247239
catch {

docs/install.sh

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -193,16 +193,10 @@ installer() {
193193
install_app
194194
add_app_to_path
195195
echo "You may have seen our documentation mention shortcuts like 'fknode', 'fkn', 'fkclean'..."
196-
echo "These are made by creating a bunch of scripts (fknode.sh, fkn.sh...) next to the main installation."
197-
echo "We highly recommend them, but JUST IN CASE they conflicted with any other local command, we let you choose."
198-
199-
read -p "Do you wish to create these shortcuts? [Y/N] " response
200-
201-
if [[ "$response" =~ ^[Yy]$ ]]; then
202-
create_shortcuts
203-
else
204-
echo "Okay, we WON'T create shortcuts. Beware, as documentation and help menus might still use them to refer to commands."
205-
fi
196+
echo "We will create a bunch of shell scripts next to the main installation for these to work."
197+
echo ""
198+
create_shortcuts
199+
echo ""
206200
echo "Installed successfully! Restart your terminal for it to work."
207201
}
208202

docs/manual/install.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: "As easy as any installation should be."
77

88
First thing first, install the CLI using any of these methods.
99

10-
Standard installation for :fontawesome-brands-windows: Microsoft Windows, :simple-linux: Linux and :simple-apple: macOS is script-based, and it's worth noting **these scripts will also create shortcuts.** For example, `fkn`, `fknode`, and also command-specific shortcuts like `fkclean`, `fkaudit`, and so on. These shortcuts are script (SH or PS1) based, and are not created when compiling from source or installing for NixOS.
10+
Standard installation for :fontawesome-brands-windows: Microsoft Windows, :simple-linux: Linux and :simple-apple: macOS is script-based, and it's worth noting **these scripts will also create shortcuts.** For example, `fkn`, `fknode`, and also command-specific shortcuts like `fkclean`, `fkaudit`, and so on. These shortcuts are script (SH or PS1) based, and are not created when compiling from source, when installing from a package manager, or when installing for NixOS.
1111

1212
## Standard installation
1313

@@ -52,9 +52,6 @@ inputs.fuckingnode.packages."${pkgs.system}".default;
5252

5353
### Konbini
5454

55-
!!! warn
56-
As of now, shortcuts like `fkn` do not generate when installing from a package manager. Only direct installation via a script generates them.
57-
5855
Just install it.
5956

6057
```sh

0 commit comments

Comments
 (0)