forked from sudofox/shell-mommy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix sudofox#4: Compatibility with ZSH
This commit introduces several fixes to make sure the program works in bash and zsh - conditions use the correct [[]] syntax - the random generator has been replaced with the use of /dev/urandom - fixed the '/' separated arrays of words to work in both shells - fixed the way array elements are accessed (0-indexes in bash but 1-indexed in zsh) The PROMPT_COMMAND in the readme has been updated to provide a working example with zsh (@AlonsoCGonzaled suggestion) @mja00 suggested using the LC_CTYPE=C variable for the random generator to ensure compatibility with MacOS
- Loading branch information
Showing
2 changed files
with
31 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters