summaryrefslogtreecommitdiff
path: root/.fzf.bash
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2022-05-10 11:57:17 +0200
committerTobias Klauser <tklauser@distanz.ch>2022-05-10 11:57:17 +0200
commit3cd42a0eda5b695c89e8c68d574b608d0995f51d (patch)
treec81754ec0a8c67e7c25f94772890ec030b4118d0 /.fzf.bash
parent95dc37230a19b9031249a0271973fd6f26f41a38 (diff)
.bashrc: add fzf integration
Diffstat (limited to '.fzf.bash')
-rw-r--r--.fzf.bash13
1 files changed, 13 insertions, 0 deletions
diff --git a/.fzf.bash b/.fzf.bash
new file mode 100644
index 0000000..703aeb5
--- /dev/null
+++ b/.fzf.bash
@@ -0,0 +1,13 @@
+# Setup fzf
+# ---------
+if [[ ! "$PATH" == */home/tklauser/.fzf/bin* ]]; then
+ export PATH="${PATH:+${PATH}:}/home/tklauser/.fzf/bin"
+fi
+
+# Auto-completion
+# ---------------
+[[ $- == *i* ]] && source "/home/tklauser/.fzf/shell/completion.bash" 2> /dev/null
+
+# Key bindings
+# ------------
+source "/home/tklauser/.fzf/shell/key-bindings.bash"