aboutsummaryrefslogtreecommitdiff
path: root/config/bash/travel.sh
diff options
context:
space:
mode:
Diffstat (limited to 'config/bash/travel.sh')
-rw-r--r--config/bash/travel.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/config/bash/travel.sh b/config/bash/travel.sh
new file mode 100644
index 0000000..41aea98
--- /dev/null
+++ b/config/bash/travel.sh
@@ -0,0 +1,15 @@
+set -o vi
+shopt -s autocd
+
+function fcd() {
+ cd "$(fd -t d -E Digital/D1 -E /home/black/Games | fzf --reverse)" && clear
+}
+
+function fcd-o() {
+ nvim "$(fd -t f -E Digital/D1 -E /home/black/Games | fzf --reverse)"
+}
+
+bind '"\C-f": "fcd\n"' #bind -x '"\C-f": fcd'
+bind -x '"\C-o": fcd-o'
+bind -x '"\C-n": /bin/dupt'
+bind -x '"\C-h": /bin/hist'