Skip to content

komondor/sw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sw

Build Status

install:

  • this module requires node-gyp
  • then, npm install sw -g

description:

cd command with shorcuts(change directory)

example

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

special characters

There are 4 special characters

absolute path ("/")
#  special only as first argument
#  that would match with /usr/local/share

sw / u loc sh
relative to home directory ( "~" or ":")
# special only as first argument
# that would match ~/Desktop/afolderwithalongname

sw ~ Desk gnam

# or with ":"

sw : sk rwi
parent folder( "..")
# from /usr/local/share/zsh
# that would match  /usr/local/include

sw .. .. ncl

About

cd with shortcuts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published