Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ set -g @sessionx-prefix off
# e.g. set -g @sessionx-x-path '~/dotfiles'
set -g @sessionx-x-path '<some-path>'

# A comma delimited absolute-paths list of custom paths
# always visible in results and ready to create a session from.
# A comma delimited list of custom paths to always be visible in results
# and ready to create a session from. Supports glob expansions.
# Tip: if you're using zoxide mode, there's a good chance this is redundant
set -g @sessionx-custom-paths '/Users/me/projects,/Users/me/second-brain'
set -g @sessionx-custom-paths "$HOME/projects,$HOME/nested-projects/*/modules/*"

# A boolean flag, if set to true, will also display subdirectories
# under the aforementioned custom paths, e.g. /Users/me/projects/tmux-sessionx
Expand Down
2 changes: 1 addition & 1 deletion scripts/sessionx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ additional_input() {
if [[ "$custom_path_subdirectories" == "true" ]]; then
paths=$(find ${clean_paths//,/ } -mindepth 1 -maxdepth 1 -type d)
else
paths=${clean_paths//,/ }
paths=$(find ${clean_paths//,/ } -mindepth 0 -maxdepth 0 -type d)
fi
add_path() {
local path=$1
Expand Down