From 62e5630f5a8e15202095281695ef122d6332905d Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Wed, 16 Nov 2016 10:08:35 -0800 Subject: [PATCH] minor new settings --- .bashrc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.bashrc b/.bashrc index 3725a9f..a3dd389 100644 --- a/.bashrc +++ b/.bashrc @@ -198,8 +198,8 @@ HISTTIMEFORMAT="%I:%M %p %m/%d " HISTCONTROL=ignoredups # works in addition to HISTCONTROL to do more flexible things # it could also do the same things as HISTCONTROL and thus replace it, -# but meh -HISTIGNORE='k *; *' +# but meh. dunno why, but just " *" does glob expansion, so use [ ] to avoid it. +HISTIGNORE='k *:[ ]*' export BC_LINE_LENGTH=0 @@ -509,6 +509,11 @@ fa() { done < <(find "$@" -print0); } +faf() { # find all files + find $@ -type f +} + +fastboot() { /home/ian/Android/Sdk/platform-tools/fastboot "$@"; } ff() { if type -P firefox &>/dev/null; then @@ -716,6 +721,8 @@ hr() { # horizontal row. used to break up output echo } +hrcat() { local f; for f; do [[ -f $f ]] || continue; hr; echo "$f"; cat "$f"; done } + i() { git "$@"; } # modified from ~/local/bin/git-completion.bash @@ -921,7 +928,7 @@ rlt() { } rlu() { # [OPTS] HOST PATH - # eg rlu -opts frodo testpath + # eg rlu -opts frodo /testpath # useful for selectively sending dirs which have been synced with unison, # where the path is the same on both hosts. opts=("${@:1:$#-2}") # 1 to last -2 -- 2.30.2