Plugin for Oh My Fish.
Package cd provides a new cd
command to help you change the current working directory fast. It's a wrapper directive of the built-in cd
command with many useful features and powerful completions.
- Multi-dot navigation:
cd ....
- Plus / minus navigation:
cd -
cd -3
cd +2
- Full
$CDPATH
support
$ omf install cd
$ cd .../foo # <=> cd ../../foo
$ cd ... # <=> cd ../..
$ cd .../foo/.../bar # <=> cd ../../foo/../../bar
$ cd # ~
$ cd ~/foo # ~/foo
$ cd ~/bar # ~/bar
$ cd - # ~/foo ;; ( Equal to `cd -1` )
$ pwd # ~/a
$ cd ~/b # ~/b ;; ( dirstack: a )
$ cd ~/c # ~/c ;; ( dirstack: b a )
$ cd ~/d # ~/d ;; ( dirstack: c b a )
$ cd -2 # ~/b ;; ( dirstack: d c a )
$ cd +1 # ~/c ;; ( dirstack: b d a )
$ cd +0 # ~/a ;; ( dirstack: c b d )
$ cd -0 # ~/a ;; ( dirstack: c b d )