summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bashrc13
1 files changed, 7 insertions, 6 deletions
diff --git a/.bashrc b/.bashrc
index eb2bf20..0d0c74d 100644
--- a/.bashrc
+++ b/.bashrc
@@ -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"