zd.fish 344 B

1234567891011
  1. # Function to filter through recently used directories
  2. function zd --argument-names 'name'
  3. set -l zd_command "command fasd -Rdl $name 2> /dev/null"
  4. fish -c "$zd_command" | __fzfcmd -1 -0 --no-sort -m | read -la select
  5. if test ! (count $select) -eq 0
  6. cd "$select"
  7. end
  8. end
  9. # Set above function to even shorter j alias
  10. alias j "zd"