Commit f1a6e613 authored by Adam Monsen's avatar Adam Monsen

bashrc: add LOCATE_PATH

This is to support encrypted homedir indexing for `locate`. See <https://askubuntu.com/questions/20821/using-locate-on-an-encrypted-partition/93477#93477>
parent 04afb2e4
......@@ -27,6 +27,12 @@ export DEBSIGN_KEYID=836F29C0
# recently visited. See https://github.com/rupa/j2
DIRJUMP_BASE=$HOME/git/meonkeys/j2
export JPY=$DIRJUMP_BASE/j.py
# Paired with a [ana]cronjob to create the file, this makes `locate` work even
# with an encrypted home dir. No-op if this file (or cronjob) is missing.
# Found at https://askubuntu.com/questions/20821/using-locate-on-an-encrypted-partition/93477#93477
# Example cronjob to update the file:
# @daily updatedb -l 0 -n '.cache .tmp' -o "$HOME/.var/locate.db"
export LOCATE_PATH="$HOME/.var/locate.db"
# force 256 colors in tmux so vim-airline looks good
alias tmux='tmux -2'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment