This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
v4.0.0
What's New
- Added Bash completion
- User can configure whether to use
find
orfd
/fdfind
command usingSMARTCD_FINDER
. - User can configure whether to use
rg
orgrep
command usingSMARTCD_GREP
. - User can assign an empty string to
SMARTCD_FZF_PREVIEW_CMD
to disable thefzf
preview.
What's New In Base-Dir Feature (with some BREAKING CHANGES!)
SMARTCD_BASE_PARENT_OPT
is renamed toSMARTCD_BASE_DIR_OPT
.SMARTCD_BASE_PARENT
is renamed toSMARTCD_BASE_DIR
SMARTCD_BASE_DIR
is NOT configurable now. By default, it will always store the 1st element of theSMARTCD_BASE_PATHS
array.SMARTCD_BASE_PATHS
is an array which can be used to store multiple base directory paths. The 1st element of the array will always be used as base.- By default, the user can use
CTRL-k
keystroke to select & change the base directory to use (for the current shell). - This keystroke can be configured using
SMARTCD_BASE_DIR_KEYBIND
env, which defaults to\\C-k
, i.e.,CTRL-k
.
BREAKING CHANGES!
- Just downloading & sourcing the
smartcd.sh
script won't work now. The user needs to clone the repository & then source thesmartcd.sh
script in their shell configuration file. - Support for Homebrew has been dropped (at least for now).
SMARTCD_HIST_OPT
is renamed toSMARTCD_HIST_DIR_OPT
SMARTCD_HIST_SIZE
is renamed toSMARTCD_HIST_DIR_LOG_SIZE
SMARTCD_CLEANUP_OPT
is renamed toSMARTCD_CLEAN_LOG_OPT