From aa36a356f67ed26de75c6140b093354bde41e20c Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Sat, 29 Oct 2022 11:44:44 -0400 Subject: add alias for llocate for locate on home directory --- dot_zshrc.tmpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index beb6023..f71f266 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -61,6 +61,7 @@ export BROWSER=firefox export TEXMFHOME=${HOME}/.texmf export KRB5CCNAME=DIR:${HOME}/.cache/krb5cc # kerberos credentials cache export GOPATH=${HOME}/.go +export XDG_STATE_HOME="${HOME}/.local/state" export PATH=/usr/sbin:/sbin:${PATH} case `uname` in @@ -96,6 +97,8 @@ alias vi='vim' alias sm='tmux attach -t mail || tmux -f ${HOME}/.tmux-mail.conf attach -t mail' alias sshfw='ssh -oForwardAgent=yes' +alias llocate="locate -d ${XDG_STATE_HOME}/plocate/home.db" + # END LOCAL . ${HOME}/.opam/opam-init/init.zsh > /dev/null 2> /dev/null || true -- cgit v1.2.3