aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/ls.bash
Commit message (Collapse)AuthorAgeFilesLines
* Switch to a faster method of array appendingTom Ryder2015-12-141-1/+1
| | | | | Does away with the nasty hack around man page discovery, and still compatible with Bash 2.05a
* Undo hare-brained last few commitsTom Ryder2015-06-241-13/+15
| | | | | GREP_OPTIONS doesn't work if it's not exported, which ought to have been painfully obvious. Oh well.
* Avoid command substitution inline declarationTom Ryder2015-06-061-1/+2
|
* Use consistent [[ syntaxTom Ryder2015-06-041-1/+1
| | | | Explicit -n, ! within [[
* Avoid condition definition of functionsTom Ryder2015-05-311-11/+14
|
* Consistent color count methodTom Ryder2015-05-311-1/+3
|
* Force integer type on color checkTom Ryder2015-05-311-1/+1
|
* Overhaul grep(1) and ls(1) options and wrappersTom Ryder2015-05-301-25/+12
|
* Ignore tput(1) stderrTom Ryder2015-05-301-1/+1
|
* Move array decs inline, remove quotesTom Ryder2014-10-101-1/+1
|
* Use space before semicolon as command separatorTom Ryder2014-02-101-1/+1
|
* Move LSCOLORS export into profileTom Ryder2014-02-051-5/+0
| | | | | dircolors(1) exports its LS_COLORS var, so it's pointless reloading it on every non-login shell
* Fix some hare-brained commentsTom Ryder2013-09-151-1/+1
|
* Some more array syntax fixesTom Ryder2013-09-101-1/+1
|
* Turns out older Bash is muddled by var=()Tom Ryder2013-09-011-1/+1
| | | | Initialisation with an array literal doesn't work in 2.05a
* More sensible use of localTom Ryder2013-09-011-4/+4
| | | | | | Don't declare integers/arrays, just use them. Also includes a minor scope fix -- don't need to count number of colors on every call to prompt(), just for `prompt on`.
* Specify -f for unsetting helper functionsTom Ryder2013-08-281-1/+1
|
* Remove unneeded underscores before helper funcsTom Ryder2013-08-281-3/+3
|
* Use hash to test for dircolors existenceTom Ryder2013-08-251-1/+1
|
* Standardise use of printfTom Ryder2013-08-211-1/+1
|
* Remove unnecessary quoting in simple assignmentsTom Ryder2013-08-201-2/+2
|
* Remove unneeded quoting within [[ ]]Tom Ryder2013-08-201-2/+2
|
* Add some comments to the ls/grep alias functionsTom Ryder2013-08-181-0/+9
|
* Use arithmetic expression for color space testsTom Ryder2013-08-181-1/+2
|
* Use arrays to collect options for ls/grep aliasesTom Ryder2013-08-181-3/+3
|
* Improve color detection logic for prompt/ls/grepTom Ryder2013-08-051-1/+1
| | | | Use tput properly and only when found and necessary
* Restore stderr redirection for command -vTom Ryder2013-08-021-1/+1
| | | | | Some older versions of Bash seem to spit out "not found" errors for command -v on stderr
* Improve comments on shell scriptsTom Ryder2013-07-311-1/+1
|
* Explicitly check for setup command existenceTom Ryder2013-07-311-1/+3
|
* Stop ignoring error output from setup commandsTom Ryder2013-07-311-1/+1
|
* Use standard structure for if/for in shellTom Ryder2013-07-311-2/+3
| | | | | | | | | | | | | | | | | | | Mostly for clarity reasons; using this syntax: if [ condition ]; then commands fi As opposed to: if [ condition ] then commands fi Or: [ condition ] && command
* Place missing quotesTom Ryder2013-07-301-2/+2
|
* Fix grep/ls aliasing for efficiency/correctnessTom Ryder2013-07-301-3/+3
| | | | Avoiding the use of echo, using builtins whereever possible
* Use clearer option name for dircolors callTom Ryder2013-07-301-1/+1
|
* Fix bug in ls color managementTom Ryder2013-07-301-1/+1
| | | | Ignoring output for an eval call? Real smart, Tom
* More portable non-surprise syntax for functionsTom Ryder2013-07-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | <tyrmored> is this syntax actually problematic? <tyrmored> function whatever { <tyrmored> thangs <tyrmored> } <zendeavor> !pf function <greybot> http://mywiki.wooledge.org/BashPitfalls#pf25 -- Don't do this! -- function foo() <tyrmored> i know it's bashism, but is it bad practice <tyrmored> yeah i know that much <tyrmored> (no parens, that is) <zendeavor> it's not necessarily a bashism, but the function keyword has implications in other shells <zendeavor> and, perhaps someday in the future, for bash as well <tyrmored> hmm, so i should use this syntax even if the scripts are explicitly bash? <ffio> hi zendeavor :) <zendeavor> you should use foo() { echo bar; } <tyrmored> rightoh <zendeavor> no surprising behaviour that way, ever <tyrmored> makes sense <zendeavor> it won't matter *much* but element of least surprise
* Unset helper functions for ls/grep setupTom Ryder2013-07-211-3/+6
| | | | These are no longer needed after the alias has been established.
* Remove trailing spaces before closing parenthesesTom Ryder2013-07-211-1/+1
| | | | I was only doing this to work around a Bash syntax highlighting bug
* Just check ls/grep option calls onceTom Ryder2013-06-241-1/+2
|
* Massive overhaul of structure for Bash filesTom Ryder2013-06-201-0/+14
* No longer using .bash_logout * No longer using .bash_profile, using POSIX-compliant .profile * instead; in particular, moved most of environment settings into .profile * Moved some of the separable functionality of both .profile and .bashrc into subdirectories (some scripts shared, some not) * Tidied implementation of ls/grep aliases * Updated install script to reflect all of the above