All Projects → 0rax → Fish Bd

0rax / Fish Bd

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

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Fish Bd

dotfiles
❤ ~/.🛠🐈 the daily jam 🍞🥜🍇🍞
Stars: ✭ 55 (-51.33%)
Mutual labels:  fish, fish-shell
Fzf.fish
Augment your fish command line with fzf key bindings.
Stars: ✭ 255 (+125.66%)
Mutual labels:  fish, fish-shell
dotpr0n
Dotfiles for macOS, FreeBSD, fish, tmux, custom functions and lots more. Peekaboo!
Stars: ✭ 44 (-61.06%)
Mutual labels:  fish, fish-shell
Fish Utils
🔧 My utility belt of fish functions, writing these has saved me many hours in the long run... I hope...
Stars: ✭ 94 (-16.81%)
Mutual labels:  fish, fish-shell
Dotfiles
📁 📋 📎
Stars: ✭ 6 (-94.69%)
Mutual labels:  fish, fish-shell
dotfiles
~nickTD
Stars: ✭ 13 (-88.5%)
Mutual labels:  fish, fish-shell
fish logo
🐠 Fish shell colorful ASCII-art logo
Stars: ✭ 82 (-27.43%)
Mutual labels:  fish, fish-shell
fish-symnav
Symbolic link navigation for Fish shell
Stars: ✭ 11 (-90.27%)
Mutual labels:  fish, fish-shell
Virtualfish
Fish shell tool for managing Python virtual environments
Stars: ✭ 819 (+624.78%)
Mutual labels:  fish, fish-shell
Done
A fish-shell package to automatically receive notifications when long processes finish.
Stars: ✭ 394 (+248.67%)
Mutual labels:  fish, fish-shell
AwsTerm
A collection of awesome terminal utilities
Stars: ✭ 37 (-67.26%)
Mutual labels:  fish, fish-shell
To Fish
Bookmarks for Fish Shell
Stars: ✭ 44 (-61.06%)
Mutual labels:  fish, fish-shell
fishline
A powerline prompt framework for the fish-shell built in fish-shell.
Stars: ✭ 66 (-41.59%)
Mutual labels:  fish, fish-shell
fish-kube-prompt
⎈ kubectl context/namespace in your fish shell prompt
Stars: ✭ 71 (-37.17%)
Mutual labels:  fish, fish-shell
dotfiles
macOS / Linux / Codespaces dotfiles with 1-line setup script. Tested on Apple Silicon Macs. Supports both zsh and fish. Now managed with https://github.com/twpayne/chezmoi
Stars: ✭ 82 (-27.43%)
Mutual labels:  fish, fish-shell
fish-exa
🐟 exa aliases for fish
Stars: ✭ 24 (-78.76%)
Mutual labels:  fish, fish-shell
fish
Fish config with awesome flexible prompt, unicode symbols, better fzf integration and lot of handy functions.
Stars: ✭ 27 (-76.11%)
Mutual labels:  fish, fish-shell
dotfiles
Dotfiles for Neovim (0.7+), Fish shell, git, Kitty, tmux, and more.
Stars: ✭ 54 (-52.21%)
Mutual labels:  fish, fish-shell
Dtags
Directory Tags for Lazy Programmers
Stars: ✭ 351 (+210.62%)
Mutual labels:  fish, fish-shell
Spacefish
🚀🐟 The fish shell prompt for astronauts
Stars: ✭ 856 (+657.52%)
Mutual labels:  fish, fish-shell

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 v1.3.2 (https://github.com/0rax/bd-fish)

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] <pattern>

Examples:
    # 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 Pat
    # And you are now in /home/user/my/path/

Options:
    -c <pattern>
            Classic mode : goes back to the first directory matching the pattern (default)
            Set if default using (set -gx BD_OPT 'classic')
            Default mode when BD_OPT or CLI options are specified
    -s <pattern>
            Seems mode: goes back to the first directory starting with pattern
            Set it as default using (set -gx BD_OPT 'sensitive')
    -i <pattern>
            Case insensitive mode: same as seems mode without case sensitity
            Set it as default using (set -gx BD_OPT 'insensitive')
    -h      Print this help and exit

Note:
    Fuzzy matching of a directory can be done with any mode using the built-in
    fish-shell autocompletion. This allows you to enter any part of the path
    and still match it

Installation

Using Fisher (recommended method)

# This method allows you to update bd automatically via `fisher`
fisher add 0rax/fish-bd

Using Symlinks

# This method allows you to update narwhal by just doing a 'git pull'
git clone https://github.com/0rax/fish-bd ~/.config/fish/fish-bd
mkdir -p ~/.config/fish/functions/ ~/.config/fish/completions/
ln -s ~/.config/fish/fish-bd/functions/bd.fish   ~/.config/fish/functions/
ln -s ~/.config/fish/fish-bd/completions/bd.fish ~/.config/fish/completions/

Using Make

make install # Assumes your fish config directory is '~/.config/fish'

Manual Install

set -l FISH_CONFIG_FOLDER ~/.config/fish/
cp functions/bd.fish   $FISH_CONFIG_FOLDER/functions/
cp completions/bd.fish $FISH_CONFIG_FOLDER/completions/

License

fish-bd is MIT licensed. See LICENSE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].