# still broken in wheezy
# still buggered in latest stable from the web, version 2.1
# perhaps its fixed in newer git version, which fails to make for me
+# this note is from 6-2014
#shopt -s nullglob
# make tab on an empty line do nothing
complete -o bashdefault -o default -o nospace -F _git i 2>/dev/null \
|| complete -o default -o nospace -F _git i
+# fast commit
+ic() {
+ git commit -am "$*"
+}
# insensitive find
ifn () {
+
l() {
if [[ $PWD == /[iap] ]]; then
command ls -A --color=auto -I lost+found "$@"
local max_lines linecount tempfile prune_lines
local harchive="${HISTFILE}_archive"
for x in "$HISTFILE" "$harchive"; do
- if [[ ! $x || ! -w $x || $(stat -c "%u" "$x") != $EUID ]]; then
- echo "error in hl: history file $x no good"
+ [[ -e $x ]] || { touch "$x" && echo "notice from hl(): creating $x"; }
+ if [[ ! $x || ! -e $x || ! -w $x || $(stat -c "%u" "$x") != $EUID ]]; then
+ echo "error in hl: history file \$x:$x no good"
return 1
fi
done