mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
Merge pull request #3478 from stephenrjohnson/custom_cache_dir
Allow custom cache dir
This commit is contained in:
commit
550ccca91c
4 changed files with 11 additions and 4 deletions
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
# Flag indicating if we've previously jumped to last directory.
|
||||
typeset -g ZSH_LAST_WORKING_DIRECTORY
|
||||
mkdir -p "$ZSH/cache"
|
||||
local cache_file="$ZSH/cache/last-working-dir"
|
||||
mkdir -p $ZSH_CACHE_DIR
|
||||
local cache_file="$ZSH_CACHE_DIR/last-working-dir"
|
||||
|
||||
# Updates the last directory once directory is changed.
|
||||
function chpwd() {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# reload zshrc
|
||||
function src()
|
||||
{
|
||||
local cache="$ZSH/cache"
|
||||
local cache=$ZSH_CACHE_DIR
|
||||
autoload -U compinit zrecompile
|
||||
compinit -d "$cache/zcomp-$HOST"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue