{"repo":"spencertipping/cd","free":true,"listed":false,"github":"https://github.com/spencertipping/cd","clone":"git clone https://github.com/spencertipping/cd.git","description":"A better \"cd\" for bash","language":"Shell","stars":101,"topics":["sshfs","fuse","bash-hacks","encfs","shell"],"license":null,"category":"cli-tools","readme_excerpt":"cd , but better A replacement for the default bash/zsh cd command. It can mount FUSE filesystems on-demand, jump down multiple levels of directories, etc. cd always prefers real directories to special commands; so if you had a directory called foo: , cd foo: would just cd into foo: , not try to mount foo: with sshfs. cd git: is now deprecated in favor of ni's git support, which is far more complete and portable. Fuse and root-mounted directories are unmounted automatically when you cd out of them. cd also supports symlinks to virtual directories. For example: If you want cd to virtualize the destination of a symlink, the symlink must not point to a real directory. Using with zsh cd works just fine with zsh, but you'll need to make sure of a few things. First, make sure KSH ARRAYS is unset when you load the script; otherwise cd will be in bash-compatible mode and will break under zsh. Second, cd will set BASH REMATCH and assumes that you'll leave it set (sorry). So if you unset it, cd will start having problems. Also, cd will nuke any existing zsh exit you have defined. If you care about this, ping me and I'll make it non-clobbering. Interactive options The --clean option is good for cases where FUSE mountpoints are left in an inconsistent state; for instance, when you suspend a machine with an open SSHFS connection. It will unmount and remove all mountpoints that aren't in use. Setup To enable it (this can also be done from .bashrc ): Alternatively: Alternatively: You can see","default_branch":null,"files":null,"tree":[],"storefront":"/r/spencertipping","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spencertipping/cd/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}