Skip to content

Commit 6243c99

Browse files
committed
tests: Fixup last commit.
1 parent 8f7e9b2 commit 6243c99

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

highlighters/main/test-data/precommand-uninstalled.zsh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@
2828
# vim: ft=zsh sw=2 ts=2 et
2929
# -------------------------------------------------------------------------------------------------
3030

31-
unhash sudo
31+
# Simulate sudo not being installed.
32+
#
33+
# The 'hash' step is because, if sudo _really_ isn't installed, 'unhash sudo'
34+
# would error out and break the test.
35+
hash sudo=/usr/bin/env && unhash sudo
36+
3237
local PATH
3338

3439
BUFFER=$'sudo ls'

0 commit comments

Comments
 (0)