Skip to content

Commit 6cd1ba6

Browse files
committed
Remove 'what' symlink — conflicts with existing system command
Drop 'what' from symlink creation, packaging scripts, install docs, man page, and README. Only 'when' and 'why' remain as aliases.
1 parent 6848afa commit 6cd1ba6

8 files changed

Lines changed: 11 additions & 20 deletions

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ jobs:
3838
STAGING="how-${VERSION}-linux-${ARCH}"
3939
mkdir -p "${STAGING}/bin" "${STAGING}/share/man/man1"
4040
cp build/how "${STAGING}/bin/"
41-
ln -s how "${STAGING}/bin/what"
4241
ln -s how "${STAGING}/bin/when"
4342
ln -s how "${STAGING}/bin/why"
4443
cp man/how.1 "${STAGING}/share/man/man1/"
@@ -86,7 +85,6 @@ jobs:
8685
STAGING="how-${VERSION}-macos-${ARCH}"
8786
mkdir -p "${STAGING}/bin" "${STAGING}/share/man/man1"
8887
cp build/how "${STAGING}/bin/"
89-
ln -s how "${STAGING}/bin/what"
9088
ln -s how "${STAGING}/bin/when"
9189
ln -s how "${STAGING}/bin/why"
9290
cp man/how.1 "${STAGING}/share/man/man1/"

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ install(TARGETS how RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
126126
install(FILES man/how.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
127127

128128
# Create symlinks for alternative command names
129-
foreach(alias what when why)
129+
foreach(alias when why)
130130
install(CODE "
131131
execute_process(
132132
COMMAND \${CMAKE_COMMAND} -E create_symlink how

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ git reset --soft HEAD~1
1717
The binary name becomes part of the query. Symlinks give you more question words:
1818

1919
```
20-
$ what is my ip address
2120
$ when was the berlin wall torn down
2221
$ why does the sky look red at sunset
2322
```
@@ -32,7 +31,7 @@ cmake ..
3231
make
3332
```
3433

35-
Install system-wide (creates `what`, `when`, `why` symlinks too):
34+
Install system-wide (creates `when`, `why` symlinks too):
3635

3736
```sh
3837
sudo cmake --install build

man/how.1

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ how \- ask an LLM questions from the terminal
55
.B how
66
.RI [ question... ]
77
.br
8-
.B what
9-
.RI [ question... ]
10-
.br
118
.B when
129
.RI [ question... ]
1310
.br
@@ -22,14 +19,13 @@ The command name forms the start of the query: running
2219
sends \(lqhow to list files\(rq to the configured LLM provider.
2320
.PP
2421
Symlinks
25-
.BR what ,
26-
.BR when ,
22+
.B when
2723
and
2824
.B why
2925
allow different question styles.
3026
For example,
31-
.B what is my ip
32-
sends \(lqwhat is my ip\(rq.
27+
.B why is the sky blue
28+
sends \(lqwhy is the sky blue\(rq.
3329
.PP
3430
The response is tailored to the user\(aqs operating system, shell, and working
3531
directory.
@@ -121,8 +117,8 @@ A diagnostic message is printed to standard error.
121117
.B how to find large files
122118
Ask how to find large files on this system.
123119
.TP
124-
.B what is the default gateway
125-
Ask what the default gateway is.
120+
.B why is the sky blue
121+
Ask why the sky is blue.
126122
.TP
127123
.B how in rust
128124
Short follow-up: repeat the previous question but for Rust.

packaging/INSTALL-linux.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ Extract the archive and copy the files:
44

55
```sh
66
sudo cp bin/how /usr/local/bin/
7-
sudo ln -sf /usr/local/bin/how /usr/local/bin/what
87
sudo ln -sf /usr/local/bin/how /usr/local/bin/when
98
sudo ln -sf /usr/local/bin/how /usr/local/bin/why
109
sudo mkdir -p /usr/local/share/man/man1
@@ -16,6 +15,6 @@ Requires libcurl at runtime (`libcurl4` on Debian/Ubuntu, `libcurl` on Fedora/RH
1615
To uninstall:
1716

1817
```sh
19-
sudo rm -f /usr/local/bin/how /usr/local/bin/what /usr/local/bin/when /usr/local/bin/why
18+
sudo rm -f /usr/local/bin/how /usr/local/bin/when /usr/local/bin/why
2019
sudo rm -f /usr/local/share/man/man1/how.1
2120
```

packaging/INSTALL-macos.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ Extract the archive and copy the files to `/usr/local`:
44

55
```sh
66
sudo cp bin/how /usr/local/bin/
7-
sudo ln -sf /usr/local/bin/how /usr/local/bin/what
87
sudo ln -sf /usr/local/bin/how /usr/local/bin/when
98
sudo ln -sf /usr/local/bin/how /usr/local/bin/why
109
sudo mkdir -p /usr/local/share/man/man1
@@ -14,6 +13,6 @@ sudo cp share/man/man1/how.1 /usr/local/share/man/man1/
1413
To uninstall:
1514

1615
```sh
17-
sudo rm -f /usr/local/bin/how /usr/local/bin/what /usr/local/bin/when /usr/local/bin/why
16+
sudo rm -f /usr/local/bin/how /usr/local/bin/when /usr/local/bin/why
1817
sudo rm -f /usr/local/share/man/man1/how.1
1918
```

packaging/postinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -e
33

44
case "$1" in
55
configure)
6-
for alias in what when why; do
6+
for alias in when why; do
77
ln -sf how /usr/bin/$alias
88
done
99
;;

packaging/postrm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -e
33

44
case "$1" in
55
remove|purge)
6-
for alias in what when why; do
6+
for alias in when why; do
77
rm -f /usr/bin/$alias
88
done
99
;;

0 commit comments

Comments
 (0)