Igor Chubin
9595805ac6
do not return when ignoring stealth queries ( #115 )
2018-11-02 22:00:36 +00:00
Ray Guo
e7162518f5
Fix: Missing args in Sub-commands
2018-09-02 09:32:54 +08:00
Vadim Zhukov
7f2f7347e6
The eval call is not needed, actually.
2018-08-27 19:02:27 +03:00
Vadim Zhukov
9e1e12b222
Whitespace-only tweaks.
2018-08-27 18:23:57 +03:00
Vadim Zhukov
e796a08e68
Convert huge case inside main loop in calls to functions.
...
Minimum code and whitestpace changes in this commit, to make reviewing
easier. Cleanup will come in next commits.
2018-08-27 18:23:57 +03:00
Igor Chubin
6c447dc1ef
cht.sh: xsel uses -bi (instead of -i) now ( fixes #78 )
2018-08-19 09:31:41 +00:00
Igor Chubin
8e89907c28
new config option: CHTSH_CURL_OPTIONS ( fixes #80 )
2018-08-18 13:42:39 +00:00
Igor Chubin
8d12aabe56
configurable cheat.sh server in the cht.sh client ( #98 )
2018-08-18 09:33:25 +00:00
Igor Chubin
c7a39d0804
CHTSH_CONF specifies location of cht.sh.conf ( fixes #59 )
2018-08-18 09:16:33 +00:00
Igor Chubin
29f839eb78
Merge pull request #101 from grayed/openbsd
...
Use in-base ftp(1) on OpenBSD instead of cURL
2018-08-16 14:53:22 +03:00
Vadim Zhukov
ff15f88334
No need for OpenBSD ftp(1) to mimic cURL after a8348037ac
.
2018-08-16 14:43:30 +03:00
Vadim Zhukov
4dcc3606a8
Use in-base ftp(1) on OpenBSD instead of cURL.
2018-08-16 13:34:39 +03:00
Vadim Zhukov
0334d8ad27
Use uname(1) instead of bash-specific $OSTYPE
2018-08-16 13:33:42 +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