diff options
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -4,12 +4,13 @@ [[ $- != *i* ]] && return [[ -f /etc/bashrc ]] && . /etc/bashrc -jr() { - local dir - dir=`find "$REPODIR" -maxdepth 2 -path "$REPODIR/*/*" -printf '%P\n' \ - | sort -r \ - | fzf -q "$1"` - [ -n "$dir" ] && cd "$REPODIR/$dir" +function jr { + local dir=` + find "$REPODIR" -maxdepth 2 -path "$REPODIR/*/*" -printf '%P\n' \ + | sort -r \ + | fzf -q "$1" + ` + [[ -n "$dir" ]] && cd "$REPODIR/$dir" } export BROWSER="firefox" |