Peter's zsh configuration files
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

d 282B

1234567891011121314151617
  1. #!zsh
  2. ################################################################################
  3. # Change to a directory in the directory stack
  4. typeset -a dlist
  5. dlist=(`dirs`)
  6. shift dlist
  7. PROMPT3="Choose a directory: "
  8. select i in $dlist; do
  9. cd_to=$i
  10. break
  11. done
  12. eval "cd $cd_to"