# 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. dunno why, but just " *" does glob expansion, so use [ ] to avoid it.
-HISTIGNORE='pass *:[ ]*:lom*:gram*'
+HISTIGNORE='pass *:[ ]*:otp *:oathtool *'
export BC_LINE_LENGTH=0
ssh $1 /tmp/${2##*/} "${@:2}"
}
+ssh() {
+ BASH_LOGIN_SHELL=true command ssh "$@"
+}
sss() { # ssh solo
ssh -oControlMaster=no -oControlPath=/ "$@"
}
# always run this first, edit the test files, then run the following
testsieve() {
- _dosieve ~/sieve/maintest.sieve INBOX delete
+ _dosieve ~/sieve/maintest.sieve ${1:-INBOX} delete
}
runsieve() {
c ~/sieve; cp personal{test,}.sieve; cp lists{test,}.sieve
- _dosieve ~/sieve/main.sieve -eW INBOX delete
+ _dosieve ~/sieve/main.sieve -eW ${1:-INBOX} delete
}
# mail related
if [[ -e /nocow/btrfs-stale ]] && ((`command ls -AUq /nocow/btrfs-stale|wc -l`)); then
ps_char="! $ps_char"
fi
+ if [[ -e /nocow/mailtest-failure ]]; then
+ ps_char="@#$@#$ $ps_char"
+ fi
+ source /a/bin/bash_unpublished/source-state
if [[ ! $SSH_CLIENT && $MAIL_HOST != $HOSTNAME ]]; then
ps_char="@ $ps_char"
fi