aboutsummaryrefslogtreecommitdiff
path: root/sh
Commit message (Collapse)AuthorAgeFilesLines
* Correctly bail from failed subshellTom Ryder2016-08-203-8/+9
|
* Port ud() to POSIX shTom Ryder2016-08-201-0/+42
|
* Remove option term spec from bd()Tom Ryder2016-08-201-7/+3
| | | | It doesn't accept options; cd() needs to because it's a wrapper
* Improve error handling of cd() a bitTom Ryder2016-08-201-17/+21
|
* Port bd() to POSIX shTom Ryder2016-08-201-0/+67
|
* Remove OLDPWD hackTom Ryder2016-08-202-24/+0
| | | | It doesn't really make sense anyway
* Move oldpwd.sh functionality into profileTom Ryder2016-08-202-10/+11
|
* Port all bash_profile.d scripts to POSIX shTom Ryder2016-08-204-0/+72
| | | | | Also require flag files in ~/.welcome for displaying or not displaying login stuff
* Move OLDPWD setting to POSIX sh dirTom Ryder2016-08-202-0/+17
| | | | With an attempt at correct trapping; may still require tweaking
* Change cd() into POSIX shell scriptTom Ryder2016-08-191-0/+72
|
* Suppress stderr from command -v checksTom Ryder2016-08-184-5/+5
| | | | | Now I remember--old Bash prints failure messages to stderr for this call. That'll be why I was suppressing both streams initially.
* Use consistent syntax for sh source loopsTom Ryder2016-08-182-8/+6
|
* Arrange EDITOR/VISUAL in a more typical wayTom Ryder2016-08-182-4/+6
|
* Fix up some command builtin callsTom Ryder2016-08-182-3/+3
|
* Sort the output of env(1) if no argumentsTom Ryder2016-08-181-0/+8
|
* Do away with dircolors and LS_COLORSTom Ryder2016-08-181-12/+1
| | | | | | | The default colors are just fine; I want to be able to distinguish directories, devices, links, and executable files, and those all appear to be configured by default. The giant environment variable is too annoying for too little benefit.
* Port grep() and ls() to POSIX shTom Ryder2016-08-183-8/+51
| | | | | | Check capabilities of wrapped programs at runtime, not declaration time. Also do away with the silly GREP_COLORS and GREP_OPTS variables. Considering doing the same with LS_COLORS.
* Replace Bashism "hash" with POSIX sh "command"Tom Ryder2016-08-181-1/+1
|
* Allow mksh to use pdksh's startup filesTom Ryder2016-08-171-1/+1
|
* Explain ksh.sh a bit moreTom Ryder2016-08-171-1/+3
|
* Move ksh ENV handling into shrc.dTom Ryder2016-08-172-10/+8
|
* Handle setting ENV from ~/.profileTom Ryder2016-08-171-3/+4
|
* Move interactive tests back into *rc filesTom Ryder2016-08-172-4/+10
| | | | | | I don't fully understand why I have to do it this way yet, but if I don't, calling SSH with a command raises "stdin: not a terminal" because ~/.bashrc was called.
* Include shrc.d in check-sh targetTom Ryder2016-08-171-2/+2
| | | | Quote a string entirely to appease shellcheck too
* Add parens after hgrep() name in errorTom Ryder2016-08-171-2/+2
|
* Move simple Bash/pdksh functions into POSIX shTom Ryder2016-08-1718-0/+174
| | | | | | | Have only translated the scripts that translate readily into POSIX sh for now. More complex stuff like that bd/pd/sd/ud navigation for Bash doesn't port as easily, mostly because there isn't an analogue for the "local" keyword in POSIX.
* Keep ls(1) option metadata in cacheTom Ryder2016-08-151-15/+28
|
* Keep grep(1) option metadata in cacheTom Ryder2016-08-151-11/+26
| | | | | | | | | It's stupid to run `grep --help` once per shell (twice for login shells!) when it's so unlikely to change, and way faster to check for the presence or absence of hint files rather than pattern-match the output with the shell. ls(1) will get the same treatment in a minute.
* Name/point pdksh files specificallyTom Ryder2016-08-101-6/+8
| | | | | This frees up space to implement actual ksh88/ksh93 files specifically in future, as pdksh's feature set differs considerably
* Add some notes about ENV for BashTom Ryder2016-08-091-1/+4
|
* Rename ksh.sh profile.d subscript to env.shTom Ryder2016-08-091-0/+0
| | | | To accommodate the possibility of other shells needing to set it
* Set ENV appropriately if using kshTom Ryder2016-08-091-0/+5
| | | | It may end up being better to have a file "env.sh".
* Use terser syntax for .d loop sourcesTom Ryder2016-07-301-8/+5
|
* Use less(1) as PAGER if availableTom Ryder2016-07-151-0/+7
|
* Separate games out into own directory/targetsTom Ryder2016-06-241-0/+4
|
* Correct a commentTom Ryder2016-06-171-1/+1
|
* Remove blank lines at end of filesTom Ryder2016-03-289-9/+0
|
* More intelligent browser handlingTom Ryder2016-03-211-5/+1
| | | | Also remove remaining palemoon refs
* Check existence before PATH prependTom Ryder2016-03-101-2/+4
|
* Add go.sh for GOCODE and Go pathTom Ryder2016-03-091-0/+7
|
* Add IFS= to read call for oldpwd.shTom Ryder2015-12-241-1/+1
|
* Switch to Palemoon, junk VimperatorTom Ryder2015-08-281-1/+1
|
* Undo hare-brained last few commitsTom Ryder2015-06-241-1/+1
| | | | | GREP_OPTIONS doesn't work if it's not exported, which ought to have been painfully obvious. Oh well.
* Move GREP_OPTIONS building to bashrcTom Ryder2015-06-241-29/+0
| | | | | Shouldn't be exported because it changes the behaviour of grep(1), which might have unwanted side effects in scripts
* Never mind, this was a bad ideaTom Ryder2015-06-191-3/+0
|
* Need to actually make LS/GREP_COLORS conditionalTom Ryder2015-06-192-11/+26
|
* Don't bother checking for ls --colorTom Ryder2015-06-191-18/+7
|
* Don't bother checking for grep --colorTom Ryder2015-06-191-8/+4
|
* Add colors to gcc outputTom Ryder2015-06-191-0/+3
|
* Add --binary-files to default grep(1) optionsTom Ryder2015-06-151-2/+6
|