Skip to content

Quickly go back to a parent directory up in your current working directory tree. Don't write 'cd ../../..' redundantly, use bd instead.

License

Notifications You must be signed in to change notification settings

RealDebugMonkey/fish-bd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fish-bd

Join the chat at https://gitter.im/0rax/fish-bd

Quickly go back to a parent directory up in your current working directory tree. Don't write 'cd ../../..' redundantly, use bd instead.

This is a fish implementation of vigneshwaranr/bd by Vigneshwaran Raveendran

Usage

# fish-bd 1.1.1 by Jean-Philippe Roemer <[email protected]>
# https://github.com/0rax/bd-fish

Based on bd for bash by Vigneshwaran Raveendran (https://github.com/vigneshwaranr/bd)

Description:
    Quickly go back to a parent directory up in your current working directory tree.
    Don't write 'cd ../../..' redundantly, use bd instead.

Usage:
    bd [option] <directory name>

Example:
    # You are in /home/user/my/path/is/very/long/
    # And you want to go back to 'path', simple type
    > bd path
    # or
    > bd -s pa
    # or
    > bd -i P
    # And you are now in /home/user/my/path/

Options:
    -c		Classic mode : goes back to the first directory named as the string (default)
			Set if default using (set -gx BD_OPT 'classic')
			Default mode when BD_OPT or CLI options are specified
    -s		Seems mode : goes back to the first directory containing string
    		Set it as default using (set -gx BD_OPT 'sensitive')
    -i		Case insensitive move (implies seems mode)
    		Set it as default using (set -gx BD_OPT 'insensitive')
    -h		Display help and exit

Installation

Using Make

Run make install. Assumes your fish config directory is ~/.config/fish.

Manual Install

Copy bd.fish into the /functions directory off of your fish config root. Copy completions/bd.fish into the /completions directory off of your fish config root.

About

Quickly go back to a parent directory up in your current working directory tree. Don't write 'cd ../../..' redundantly, use bd instead.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 91.2%
  • Makefile 8.8%