From 21515e1ff1dbd804282ae5d8c723417cef75c8df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Wed, 17 May 2023 16:53:46 +0200 Subject: [PATCH] Hopefully fix smartcd --- install.sh | 5 ++--- zsh/.smartcd_config | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 zsh/.smartcd_config diff --git a/install.sh b/install.sh index 32bb143..4992a6e 100755 --- a/install.sh +++ b/install.sh @@ -72,11 +72,10 @@ if $ZSH; then ln -s $PWD/zsh/.zshrc $HOME/.zshrc 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 make install - source load_smartcd - smartcd config + ln -s $HOME/.smartcd_config $PWD/zsh/.smartcd_config fi ################################################# diff --git a/zsh/.smartcd_config b/zsh/.smartcd_config new file mode 100644 index 0000000..d9e6dd6 --- /dev/null +++ b/zsh/.smartcd_config @@ -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