reel is an "up" command for fish, inspired by reddit.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
|if test -f $argv|
|if pwd | grep -q "$argv"|
|set x (dirname $PWD)|
|while test -z (echo (basename $x) | grep "$argv")|
|set x (dirname $x)|
|echo "Directory name containing "$argv" was not found in current path."|