diff options
| author | David Kaufmann <astra@ionic.at> | 2020-02-22 14:20:06 +0100 |
|---|---|---|
| committer | David Kaufmann <astra@ionic.at> | 2020-02-22 14:20:06 +0100 |
| commit | ac593ce069a02de73ef6e17e9f905fc9cf5b2f11 (patch) | |
| tree | 849f6c9fb4ae6984c64a2947189178fdd8003110 /home | |
| parent | 386e503fa2c1e81fb719ca82bec1293c9229e92e (diff) | |
| download | config-ac593ce069a02de73ef6e17e9f905fc9cf5b2f11.tar.gz | |
remove custom pdfgrep
Diffstat (limited to 'home')
| -rw-r--r-- | home/.zshrc | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/home/.zshrc b/home/.zshrc index bedc8e7..8fe2fe0 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -250,32 +250,6 @@ bat(){ BAT1="/sys/class/power_supply/BAT1"; calc -p \(`cat ${BAT0}/energy_now`+`cat ${BAT1}/energy_now`\)/\(`cat ${BAT0}/energy_full`+`cat ${BAT1}/energy_full`\); } # show battery state -#pdfgrep(){ -# OLDWORKDIR=`pwd` -# TMPDIR=`mktemp -d` -# if [[ "$1" == '-r' && "$3" == "" ]]; then -# search=$2 ; shift ; shift -# filelist=`find . -name '*.pdf' -print` -# elif [[ "$1" == '-r' ]]; then -# search=$2 ; shift ; shift -# filelist=`find $* -name '*.pdf' -print` -# else -# search=$1 ; shift -# filelist=$* -# fi -# -# echo "$filelist" | while read file; do -# filedir=`dirname ${file}` -# filename=`basename ${file}` -# mkdir -p ${TMPDIR}/${filedir}/ -# pdftotext ${file} ${TMPDIR}/${filedir}/${filename%.pdf}.txt -# done -# cd ${TMPDIR} -# grep -r "${search}" . | sed 's/\.txt:/.pdf:/' -# cd ${OLDWORKDIR} -# /bin/rm -r ${TMPDIR} -#} - # urxvt can handle transparency in .Xdefaults #[[ ! -z "$DISPLAY" ]] && [ -n "$WINDOWID" ] && exec_exists transset-df && transset-df -i $WINDOWID 0.85 >/dev/null || true |
