- this module requires node-gyp
- then,
npm install sw -g
cd
command with shorcuts(change directory)
sw fo sub
searches for a directory that matches this regular expression: /.*fo.*\/.*sub.*/g
. Therefore, it would match./folder/subfolder
but not folder/whatever
- If it matches only one directory, it will perform
cd ./to/this/directory
- If it matches two or more directories, it will prompt you to choose a folder
There are 4 special characters
# special only as first argument
# that would match with /usr/local/share
sw / u loc sh
# special only as first argument
# that would match ~/Desktop/afolderwithalongname
sw ~ Desk gnam
# or with ":"
sw : sk rwi
# from /usr/local/share/zsh
# that would match /usr/local/include
sw .. .. ncl