aboutsummaryrefslogtreecommitdiff
path: root/sh
Commit message (Collapse)AuthorAgeFilesLines
* Change verse login check to use numeric testTom Ryder2016-08-231-2/+2
| | | | shellcheck warned me that \> isn't POSIX
* Swap `builtin` for POSIX `command` in mkcd()Tom Ryder2016-08-231-1/+1
|
* Explicitly return from failed `cd` call in scr()Tom Ryder2016-08-231-1/+1
|
* Remove stray Bashism from pwgen() wrapperTom Ryder2016-08-231-2/+1
|
* Set POSIX PS1 before loading subscriptsTom Ryder2016-08-232-3/+5
| | | | So that it's overridden in the correct order by pdksh
* Add comment to vague blockTom Ryder2016-08-231-0/+2
|
* Remove commented apostrophe from within subshellTom Ryder2016-08-231-1/+1
|
* Fix up ?d() functionsTom Ryder2016-08-236-104/+98
| | | | | | Count arguments in right places; return 2 on usage errors where possible; minimise subshell activity; move directory replacement functionality to its own function `rd()` rather than overloading `cd`.
* Correct stderr redirection for keychain(1) checkTom Ryder2016-08-231-1/+1
|
* Use whoami(1) rather than `id -nu`Tom Ryder2016-08-231-1/+1
| | | | | A little bit clearer, and still POSIX; FreeBSD and OpenBSD seem to both have it
* Avoid repetition of KSH_ENV param expansionTom Ryder2016-08-221-2/+2
|
* Stop versioning go.shTom Ryder2016-08-211-6/+0
| | | | | Pretty simple script, and only in active use on one of my systems at the moment anyway; just cluttering environment otherwise
* Style tweaks to profile.d subscriptsTom Ryder2016-08-214-13/+4
|
* Consolidate ed,bc,grep,ls.sh into one functionTom Ryder2016-08-215-98/+55
|
* Distill/fix keychain handling a bitTom Ryder2016-08-212-12/+8
|
* Restructure ed() to test,cache features on loginTom Ryder2016-08-212-20/+40
|
* Cache --quiet option for bc(1) in flag fileTom Ryder2016-08-212-4/+33
| | | | As done for grep(1) and ls(1); ed(1) is next
* Add la(), ll()Tom Ryder2016-08-213-1/+22
|
* Adjust ordering of ls() and grep() optionsTom Ryder2016-08-212-34/+35
|
* Clean up/extend grep()/ls() extensionTom Ryder2016-08-214-28/+46
|
* Remove single quotes within vr() subshellTom Ryder2016-08-211-3/+3
|
* Remove apostrophe from comment to calm pdkshTom Ryder2016-08-211-1/+1
| | | | | To my considerable surprise, OpenPSD pdksh sees this apostrophe within this subshell wrapper as an *open quote*!
* Add --devices and --directories to grep(1) optsTom Ryder2016-08-212-2/+16
|
* Correct path() error messagesTom Ryder2016-08-201-4/+4
|
* Correct empty var referenceTom Ryder2016-08-201-2/+1
|
* Write path() help to stderr if unrec commandTom Ryder2016-08-201-1/+1
|
* Dance for shellcheck in path()Tom Ryder2016-08-201-5/+8
|
* Port path() to POSIX shTom Ryder2016-08-201-0/+93
| | | | That was a lot easier than I thought
* Port vr(1) to POSIX shTom Ryder2016-08-201-0/+49
|
* Port lhn() to POSIX shTom Ryder2016-08-201-0/+12
|
* Basic PS1 setup for shrcTom Ryder2016-08-201-0/+3
| | | | | Will be overridden completely by Bash or OpenBSD pdksh prompt() functions
* Port sd() to POSIX shTom Ryder2016-08-201-0/+82
|
* Port pd() to POSIX shTom Ryder2016-08-201-0/+37
|
* 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.