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

17 Commits

Author SHA1 Message Date
Vadim Zhukov 4dcc3606a8 Use in-base ftp(1) on OpenBSD instead of cURL. 2018-08-16 13:34:39 +03:00
Igor Chubin 0f3a1e0057 replaced cht.sh with cht.sh-posix 2018-08-16 09:48:24 +00:00
Vadim Zhukov cc5310e91c Fix stealth mode. 2018-08-14 01:51:57 +03:00
Igor Chubin fa89d1a7ca reverted a08f130562 (cht.sh posix compatibility) 2018-08-03 09:14:17 +00:00
Vadim Zhukov ada9252730 ls -T isn't portable as well, as pointed out by pickfire@.
Since we don't really use timestamp for anything except direct display,
just extract fields 6-8 from "ls -l" output and be done with it.
2018-07-19 16:48:50 +03:00
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