Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Port pd() to POSIX sh | Tom Ryder | 2016-08-20 | 1 | -53/+0 | |
| | ||||||
* | Port ud() to POSIX sh | Tom Ryder | 2016-08-20 | 1 | -50/+0 | |
| | ||||||
* | Port bd() to POSIX sh | Tom Ryder | 2016-08-20 | 1 | -78/+0 | |
| | ||||||
* | Port all bash_profile.d scripts to POSIX sh | Tom Ryder | 2016-08-20 | 4 | -71/+0 | |
| | | | | | Also require flag files in ~/.welcome for displaying or not displaying login stuff | |||||
* | Move OLDPWD setting to POSIX sh dir | Tom Ryder | 2016-08-20 | 1 | -3/+0 | |
| | | | | With an attempt at correct trapping; may still require tweaking | |||||
* | Change cd() into POSIX shell script | Tom Ryder | 2016-08-19 | 1 | -32/+0 | |
| | ||||||
* | Add lhn() | Tom Ryder | 2016-08-18 | 1 | -0/+7 | |
| | ||||||
* | Drastically limit amount of history kept | Tom Ryder | 2016-08-18 | 1 | -4/+4 | |
| | | | | | | Reading really large files seems to be slow in Bash in general, but it's particularly bad in 4.4rc1. I keep encrypted snapshots of my HISTFILE on my home machine, so it's just a little extra step to search them. | |||||
* | Don't do Git prompt work if not in working tree | Tom Ryder | 2016-08-18 | 1 | -0/+7 | |
| | ||||||
* | Use explicit -n test within [[ ]] | Tom Ryder | 2016-08-18 | 2 | -3/+3 | |
| | | | | | Bash doesn't require it, but there's no real advantage to it and it's a better habit for complying with e.g. pdksh, which does | |||||
* | Use consistent syntax for sh source loops | Tom Ryder | 2016-08-18 | 2 | -9/+5 | |
| | ||||||
* | Port grep() and ls() to POSIX sh | Tom Ryder | 2016-08-18 | 2 | -55/+0 | |
| | | | | | | 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. | |||||
* | Update bashrc/zshrc with POSIX funcs source | Tom Ryder | 2016-08-17 | 1 | -1/+1 | |
| | ||||||
* | Simplify end-of-file loop in bashrc | Tom Ryder | 2016-08-17 | 1 | -24/+8 | |
| | ||||||
* | Use terser loop syntax in ~/.bash_profile | Tom Ryder | 2016-08-17 | 1 | -3/+2 | |
| | ||||||
* | Source ~/.shrc.d in Bash if not login shell | Tom Ryder | 2016-08-17 | 1 | -0/+12 | |
| | ||||||
* | Move interactive tests back into *rc files | Tom Ryder | 2016-08-17 | 2 | -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. | |||||
* | Move -i test in Bash to end of ~/.bash_profile | Tom Ryder | 2016-08-17 | 2 | -9/+4 | |
| | ||||||
* | Move simple Bash/pdksh functions into POSIX sh | Tom Ryder | 2016-08-17 | 16 | -171/+0 | |
| | | | | | | | 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 grep(1) option metadata in cache | Tom Ryder | 2016-08-15 | 1 | -9/+11 | |
| | | | | | | | | | 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. | |||||
* | Don't use git: prompt prefix if PROMPT_VCS unset | Tom Ryder | 2016-08-15 | 1 | -2/+3 | |
| | | | | | All of my personal stuff is in Git, so this is only really applicable at work | |||||
* | Remove square brackets around prompt | Tom Ryder | 2016-08-15 | 1 | -1/+1 | |
| | | | | Just noise | |||||
* | Quote a PS1 character to appease shellcheck | Tom Ryder | 2016-08-14 | 1 | -1/+1 | |
| | ||||||
* | Two extra comments | Tom Ryder | 2016-08-14 | 1 | -0/+2 | |
| | ||||||
* | Rearrange prompt variable assignments a bit | Tom Ryder | 2016-08-14 | 1 | -10/+12 | |
| | ||||||
* | Use --quiet flag for prompt git-rev-parse(1) call | Tom Ryder | 2016-08-14 | 1 | -1/+1 | |
| | ||||||
* | Use porcelain commands for Git prompt | Tom Ryder | 2016-08-13 | 1 | -27/+9 | |
| | | | | | | | | | | | | Checking the output of `git status -z` works, but to be correctly handled requires using a null delimiter for read. Because I want to port this to OpenBSD pdksh (which doesn't have the -d option for read), this seems to be a workable alternative. It also enables me to remove the process substitution (another thing pdksh doesn't support), and the array of flags. I haven't yet tested this for speed. | |||||
* | Fix comment typo | Tom Ryder | 2016-08-11 | 1 | -1/+1 | |
| | ||||||
* | Test bc(1) for non-POSIX -q | Tom Ryder | 2016-08-11 | 1 | -0/+3 | |
| | ||||||
* | Add explicit -n to hgrep() $HISTFILE check | Tom Ryder | 2016-08-10 | 1 | -1/+1 | |
| | ||||||
* | Remove "hg" from possible completions for prompt() | Tom Ryder | 2016-08-10 | 1 | -1/+1 | |
| | ||||||
* | Remove Mercurial support from Bash prompt | Tom Ryder | 2016-08-10 | 1 | -37/+0 | |
| | | | | | | Since Vim and Fanboy's list both moved to Git, I have no reason to use it anymore. Also added a note explaining why I've left the SVN stuff in there (I don't like SVN, but I do need to use it for work) | |||||
* | Switch fnl()/scr() to use mktd(1) | Tom Ryder | 2016-08-04 | 2 | -6/+3 | |
| | ||||||
* | Remove error in expansion quoting | Tom Ryder | 2016-08-03 | 1 | -1/+1 | |
| | ||||||
* | Move clrd()/clwr() to scripts | Tom Ryder | 2016-08-02 | 2 | -13/+0 | |
| | | | | | clrd(1) is POSIX sh, but clwr(1) ideally needs Readline, so I've left it as #!/bin/bash for now. | |||||
* | Strip trailing newline from clrd() | Tom Ryder | 2016-08-02 | 1 | -1/+0 | |
| | ||||||
* | Add clrd() | Tom Ryder | 2016-08-02 | 1 | -0/+6 | |
| | ||||||
* | Change apf() to a shell script | Tom Ryder | 2016-08-02 | 1 | -99/+0 | |
| | ||||||
* | Change bell() to a POSIX sh script | Tom Ryder | 2016-08-01 | 1 | -4/+0 | |
| | ||||||
* | Tidy completion files | Tom Ryder | 2016-07-30 | 10 | -7/+10 | |
| | | | | Add comments, add short-circuit to vared() completion | |||||
* | Change cf() from Bash func to shell script | Tom Ryder | 2016-07-30 | 1 | -29/+0 | |
| | ||||||
* | Move sprunge() Bash function to spr(1) | Tom Ryder | 2016-07-30 | 1 | -5/+0 | |
| | ||||||
* | Change pa and paz bash funcs to sh scripts | Tom Ryder | 2016-07-30 | 2 | -11/+0 | |
| | ||||||
* | Use terser syntax for .d loop sources | Tom Ryder | 2016-07-30 | 1 | -16/+10 | |
| | ||||||
* | Rename vis completion to eds | Tom Ryder | 2016-07-30 | 1 | -7/+7 | |
| | ||||||
* | Move bash completion setup into separate dir | Tom Ryder | 2016-07-30 | 33 | -217/+218 | |
| | ||||||
* | Change ca from Bash func to sh script | Tom Ryder | 2016-07-30 | 1 | -4/+0 | |
| | ||||||
* | Change mkmv/mkcp from Bash funcs to sh scripts | Tom Ryder | 2016-07-30 | 2 | -8/+0 | |
| | ||||||
* | Remove md.bash | Tom Ryder | 2016-07-24 | 1 | -4/+0 | |
| | | | | Not really justified | |||||
* | Remove custom length limit on login fortunes | Tom Ryder | 2016-07-23 | 1 | -1/+1 | |
| | | | | OpenBSD doesn't have -n |