1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00
Commit Graph

12 Commits

Author SHA1 Message Date
Vadim Zhukov 417f911190 Make zsh happy as well (in sh mode). 2018-07-13 16:07:05 +03:00
Vadim Zhukov 3f16075d89 The ksh93 shell doesn't have "local", but "typeset" could be used instead. 2018-07-13 16:07:05 +03:00
Vadim Zhukov 56b28daf4a Missed non-POSIX array expansion. 2018-07-13 16:06:49 +03:00
Vadim Zhukov c67fb61662 Make cht.sh work under POSIX environment.
There are a few corner cases still, but normal desktop users should be
satisfied on almost any *nix now.

Verified with bash, ksh (OpenBSD) and dash.
2018-07-13 16:06:49 +03:00
Juan Pablo Orsay d8e48d38c4 Using pbcopy/pbpaste in macOS instead 2018-07-11 10:57:47 -03:00
Lauri Piisang 591d85c00e remove unnecessary recursive flag
You are dealing with files, not directories, so using recursive flag for removal can only create potential disaster scenarios (in case variable is blank for example).

Most likely, you don't need the `-f` flag either.
2018-07-11 14:24:46 +03:00
Igor Chubin 1125f13f89 added config file support (can be used in #5) 2018-07-08 19:18:16 +00:00
Igor Chubin 7b03f2be55 Merge branch 'master' of https://github.com/chubin/cheat.sh 2018-07-03 10:49:49 +00:00
Igor Chubin b3c987832c cht.sh enchancements 2018-07-03 10:48:30 +00:00
ET e5925a6c09 Update cht.sh.txt
Change shebang for (Free,Open,Net etc.)BSD compatibility.
2018-07-03 10:26:36 +03:00
Igor Chubin ad559624ce cht.sh: TMP2 was not removed properly 2018-06-03 19:44:41 +00:00
Igor Chubin 7324910ead renamed /:bash => /:cht.sh 2018-06-02 21:40:50 +00:00