aboutsummaryrefslogtreecommitdiff
path: root/config/bash/travel.sh
blob: 41aea984d28303023c0bc1582ced0f6f2ba6cd22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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'