Hopefully fix smartcd

This commit is contained in:
Thomas Avé 2023-05-17 16:53:46 +02:00
parent 61da99a39d
commit 21515e1ff1
2 changed files with 20 additions and 3 deletions

View File

@ -72,11 +72,10 @@ if $ZSH; then
ln -s $PWD/zsh/.zshrc $HOME/.zshrc ln -s $PWD/zsh/.zshrc $HOME/.zshrc
mkdir -p $HOME/.local/state/zsh/ mkdir -p $HOME/.local/state/zsh/
git clone git@github.com:cxreg/smartcd.git /tmp/smartcd git clone https://github.com/cxreg/smartcd.git /tmp/smartcd
cd /tmp/smartcd cd /tmp/smartcd
make install make install
source load_smartcd ln -s $HOME/.smartcd_config $PWD/zsh/.smartcd_config
smartcd config
fi fi
################################################# #################################################

18
zsh/.smartcd_config Normal file
View File

@ -0,0 +1,18 @@
# Load and configure smartcd
source ~/.smartcd/lib/core/arrays
source ~/.smartcd/lib/core/varstash
source ~/.smartcd/lib/core/smartcd
smartcd setup chpwd-hook
# smartcd setup cd
# smartcd setup pushd
# smartcd setup popd
# smartcd setup prompt-hook
smartcd setup exit-hook
smartcd setup completion
# VARSTASH_AUTOCONFIGURE=1
# VARSTASH_AUTOEDIT=1
# SMARTCD_NO_INODE=1
# SMARTCD_AUTOMIGRATE=1
# SMARTCD_LEGACY=1
# SMARTCD_QUIET=1
# VARSTASH_QUIET=1